Class 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.
    • Constructor Detail

      • AbstractIndexModule

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

      • 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()
      • getIndexConfig

        protected IndexConfig getIndexConfig​(org.eclipse.jgit.lib.Config cfg)