Package com.google.gerrit.server.index
Class AbstractIndexModule
java.lang.Object
com.google.inject.AbstractModule
com.google.gerrit.server.index.AbstractIndexModule
- All Implemented Interfaces:
com.google.inject.Module
public abstract class AbstractIndexModule
extends com.google.inject.AbstractModule
Base class to establish implementation-independent index bindings. To be subclassed by concrete
index implementations, such as
com.google.gerrit.lucene.LuceneIndexModule
.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractIndexModule
(com.google.common.collect.ImmutableMap<String, Integer> singleVersions, int threads, boolean slave) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected abstract Class<? extends AccountIndex>
protected abstract Class<? extends ChangeIndex>
protected abstract Class<? extends GroupIndex>
protected IndexConfig
getIndexConfig
(org.eclipse.jgit.lib.Config cfg) protected abstract Class<? extends com.google.gerrit.index.project.ProjectIndex>
protected abstract Class<? extends VersionManager>
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Field Details
-
INDEX_MODULE
- See Also:
-
-
Constructor Details
-
AbstractIndexModule
-
-
Method Details
-
configure
protected void configure()- Overrides:
configure
in classcom.google.inject.AbstractModule
-
getAccountIndex
-
getChangeIndex
-
getGroupIndex
-
getProjectIndex
-
getVersionManager
-
getIndexConfig
-