Class StaticModule

  • All Implemented Interfaces:
    com.google.inject.Module

    public class StaticModule
    extends com.google.inject.servlet.ServletModule
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.inject.servlet.ServletModule

        com.google.inject.servlet.ServletModule.FilterKeyBindingBuilder, com.google.inject.servlet.ServletModule.ServletKeyBindingBuilder
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String CACHE  
      static com.google.common.collect.ImmutableList<String> POLYGERRIT_INDEX_PATHS
      Paths at which we should serve the main PolyGerrit application index.html.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void configureServlets()  
      • Methods inherited from class com.google.inject.servlet.ServletModule

        configure, filter, filter, filterRegex, filterRegex, getServletContext, serve, serve, serveRegex, serveRegex
      • Methods inherited from class com.google.inject.AbstractModule

        addError, addError, addError, bind, bind, bind, bindConstant, binder, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
    • Field Detail

      • POLYGERRIT_INDEX_PATHS

        public static final com.google.common.collect.ImmutableList<String> POLYGERRIT_INDEX_PATHS
        Paths at which we should serve the main PolyGerrit application index.html.

        Supports "/*" as a trailing wildcard.

    • Constructor Detail

      • StaticModule

        @Inject
        public StaticModule​(GerritOptions options)
    • Method Detail

      • configureServlets

        protected void configureServlets()
        Overrides:
        configureServlets in class com.google.inject.servlet.ServletModule