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.AbstractModuleBase class to establish implementation-independent index bindings. To be subclassed by concrete index implementations, such ascom.google.gerrit.lucene.LuceneIndexModule. 
- 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractIndexModule(Map<String,Integer> singleVersions, int threads, boolean slave) 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidconfigure()protected abstract Class<? extends AccountIndex>getAccountIndex()protected abstract Class<? extends ChangeIndex>getChangeIndex()protected abstract Class<? extends GroupIndex>getGroupIndex()protected IndexConfiggetIndexConfig(org.eclipse.jgit.lib.Config cfg)protected abstract Class<? extends com.google.gerrit.index.project.ProjectIndex>getProjectIndex()protected abstract Class<? extends VersionManager>getVersionManager()- 
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, requestStaticInjection, requireBinding, requireBinding 
 - 
 
 - 
 
- 
- 
Method Detail
- 
configure
protected void configure()
- Overrides:
 configurein classcom.google.inject.AbstractModule
 
- 
getAccountIndex
protected abstract Class<? extends AccountIndex> getAccountIndex()
 
- 
getChangeIndex
protected abstract Class<? extends ChangeIndex> getChangeIndex()
 
- 
getGroupIndex
protected abstract Class<? extends GroupIndex> getGroupIndex()
 
- 
getProjectIndex
protected abstract Class<? extends com.google.gerrit.index.project.ProjectIndex> getProjectIndex()
 
- 
getVersionManager
protected abstract Class<? extends VersionManager> getVersionManager()
 
- 
getIndexConfig
protected IndexConfig getIndexConfig(org.eclipse.jgit.lib.Config cfg)
 
 - 
 
 -