Use explicit binding of the RulesCache singleton

This way we know to expect it to exist, and so does Guice.

Change-Id: I3f606af9747095cc78e22e7b4b1ac18993932a1d
This commit is contained in:
Shawn O. Pearce
2011-06-17 08:53:27 -07:00
parent 4da4cbb921
commit e01f37016d

View File

@@ -21,6 +21,7 @@ import com.google.gerrit.lifecycle.LifecycleListener;
import com.google.gerrit.lifecycle.LifecycleModule;
import com.google.gerrit.reviewdb.AuthType;
import com.google.gerrit.rules.PrologModule;
import com.google.gerrit.rules.RulesCache;
import com.google.gerrit.server.FileTypeRegistry;
import com.google.gerrit.server.IdentifiedUser;
import com.google.gerrit.server.MimeUtilFileTypeRegistry;
@@ -138,6 +139,7 @@ public class GerritGlobalModule extends FactoryModule {
bind(IdGenerator.class);
bind(CachePool.class);
bind(RulesCache.class);
install(AccountByEmailCacheImpl.module());
install(AccountCacheImpl.module());
install(GroupCacheImpl.module());