Explicitly bind RestCollections in modules
This reverts commit 2934302a7d
and provides a real fix for the Guice constructor not ready
bug. We should be naming these collection classes explicitly
as being implemented by themselves so Guice doesn't have to
guess about how to create them.
Change-Id: I761bb18ea180b48139aefd1e112e593c4c8517b3
This commit is contained in:
@@ -23,6 +23,9 @@ import com.google.gerrit.extensions.restapi.RestApiModule;
|
||||
public class Module extends RestApiModule {
|
||||
@Override
|
||||
protected void configure() {
|
||||
bind(AccountsCollection.class);
|
||||
bind(Capabilities.class);
|
||||
|
||||
DynamicMap.mapOf(binder(), ACCOUNT_KIND);
|
||||
DynamicMap.mapOf(binder(), CAPABILITY_KIND);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user