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:
Shawn O. Pearce
2012-11-19 17:52:02 -08:00
parent d85df6496d
commit 43265b5f1a
5 changed files with 12 additions and 3 deletions

View File

@@ -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);