Make the constructors of all REST root collections public
This allows us to implement subclasses of these collections at Google. Change-Id: I97490758db3ec0490137ba7feb11e2a167aa9092 Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
@@ -36,7 +36,7 @@ public class PluginsCollection
|
|||||||
private final Provider<InstallPlugin> install;
|
private final Provider<InstallPlugin> install;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
PluginsCollection(
|
public PluginsCollection(
|
||||||
DynamicMap<RestView<PluginResource>> views,
|
DynamicMap<RestView<PluginResource>> views,
|
||||||
PluginLoader loader,
|
PluginLoader loader,
|
||||||
Provider<ListPlugins> list,
|
Provider<ListPlugins> list,
|
||||||
|
@@ -50,7 +50,7 @@ public class AccountsCollection
|
|||||||
private final CreateAccount.Factory createAccountFactory;
|
private final CreateAccount.Factory createAccountFactory;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
AccountsCollection(
|
public AccountsCollection(
|
||||||
Provider<CurrentUser> self,
|
Provider<CurrentUser> self,
|
||||||
AccountResolver resolver,
|
AccountResolver resolver,
|
||||||
AccountControl.Factory accountControlFactory,
|
AccountControl.Factory accountControlFactory,
|
||||||
|
@@ -56,7 +56,7 @@ public class ChangesCollection
|
|||||||
private final ProjectCache projectCache;
|
private final ProjectCache projectCache;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ChangesCollection(
|
public ChangesCollection(
|
||||||
Provider<ReviewDb> db,
|
Provider<ReviewDb> db,
|
||||||
Provider<CurrentUser> user,
|
Provider<CurrentUser> user,
|
||||||
Provider<QueryChanges> queryFactory,
|
Provider<QueryChanges> queryFactory,
|
||||||
|
@@ -29,7 +29,7 @@ public class ConfigCollection implements RestCollection<TopLevelResource, Config
|
|||||||
private final DynamicMap<RestView<ConfigResource>> views;
|
private final DynamicMap<RestView<ConfigResource>> views;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ConfigCollection(DynamicMap<RestView<ConfigResource>> views) {
|
public ConfigCollection(DynamicMap<RestView<ConfigResource>> views) {
|
||||||
this.views = views;
|
this.views = views;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -60,7 +60,7 @@ public class ProjectsCollection
|
|||||||
private boolean hasQuery;
|
private boolean hasQuery;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ProjectsCollection(
|
public ProjectsCollection(
|
||||||
DynamicMap<RestView<ProjectResource>> views,
|
DynamicMap<RestView<ProjectResource>> views,
|
||||||
Provider<ListProjects> list,
|
Provider<ListProjects> list,
|
||||||
Provider<QueryProjects> queryProjects,
|
Provider<QueryProjects> queryProjects,
|
||||||
|
Reference in New Issue
Block a user