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 Details

  • Constructor Details

    • AbstractIndexModule

      protected AbstractIndexModule(Map<String,Integer> singleVersions, int threads, boolean slave)
  • Method Details

    • configure

      protected void configure()
      Overrides:
      configure in class com.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)