Class SpincastGuiceModuleBase

java.lang.Object
com.google.inject.AbstractModule
org.spincast.core.guice.SpincastGuiceModuleBase
All Implemented Interfaces:
com.google.inject.Module, SpincastContextTypesInterested
Direct Known Subclasses:
AppModule, AppModule, AppModule, AppModule, AppModule, SpincastAttemptsLimiterPluginModule, SpincastConfigPluginModule, SpincastCorePluginModule, SpincastCryptoPluginModule, SpincastCssAutoprefixerPluginModule, SpincastCssYuiCompressorPluginModule, SpincastDateFormatterPluginModule, SpincastDictionaryPluginModule, SpincastFlywayUtilsPluginModule, SpincastFormsProtectionPluginModule, SpincastGsonPluginModule, SpincastHotSwapPluginModule, SpincastHttpCachingPluginModule, SpincastHttpClientPluginModule, SpincastJacksonJsonPluginModule, SpincastJacksonXmlPluginModule, SpincastJdbcPluginModule, SpincastJsClosureCompilerPluginModule, SpincastLocaleResolverPluginModule, SpincastLogbackUtilsPluginModule, SpincastOpenApiBottomUpPluginModule, SpincastPebblePluginModule, SpincastProcessUtilsPluginModule, SpincastRequestPluginModule, SpincastResponsePluginModule, SpincastRoutingPluginModule, SpincastScheduledTasksPluginModule, SpincastSessionPluginModule, SpincastSwaggerUiPluginModule, SpincastTemplatingAddonPluginModule, SpincastTimeZoneResolverPluginModule, SpincastUndertowPluginModule, SpincastVariablesPluginModule, SpincastWatermarkerPluginModule

public abstract class SpincastGuiceModuleBase extends com.google.inject.AbstractModule implements SpincastContextTypesInterested
Base class for a Spincast Guice module.
  • Constructor Details

    • SpincastGuiceModuleBase

      public SpincastGuiceModuleBase()
    • SpincastGuiceModuleBase

      public SpincastGuiceModuleBase(Class<? extends RequestContext<?>> requestContextImplementationClass, Class<? extends WebsocketContext<?>> websocketContextImplementationClass)
  • Method Details

    • getRequestContextImplementationClass

      protected Class<? extends RequestContext<?>> getRequestContextImplementationClass()
    • getWebsocketContextImplementationClass

      protected Class<? extends WebsocketContext<?>> getWebsocketContextImplementationClass()
    • setRequestContextImplementationClass

      public void setRequestContextImplementationClass(Class<? extends RequestContext<?>> requestContextImplementationClass)
      Description copied from interface: SpincastContextTypesInterested
      The implementation class to use for RequestContext.
      Specified by:
      setRequestContextImplementationClass in interface SpincastContextTypesInterested
    • setWebsocketContextImplementationClass

      public void setWebsocketContextImplementationClass(Class<? extends WebsocketContext<?>> websocketContextImplementationClass)
      Description copied from interface: SpincastContextTypesInterested
      The implementation class to use for WebsocletContext.
      Specified by:
      setWebsocketContextImplementationClass in interface SpincastContextTypesInterested
    • getRequestContextInterface

      protected Class<? extends RequestContext<?>> getRequestContextInterface()
    • getWebsocketContextInterface

      protected Type getWebsocketContextInterface()
    • parameterizeWithRequestContext

      protected <T> com.google.inject.Key<T> parameterizeWithRequestContext(Class<T> clazz)
      Get a version of the specified class parameterized with the request context type.
    • parameterizeWithWebsocketContext

      protected <T> com.google.inject.Key<T> parameterizeWithWebsocketContext(Class<T> clazz)
      Get a version of the specified class parameterized with the Websocket context type.
    • parameterizeWithContextInterfaces

      protected <T> com.google.inject.Key<T> parameterizeWithContextInterfaces(Class<T> clazz)
      Get a version of the specified class parameterized with the request and Websocket context types.
    • install

      protected void install(com.google.inject.Module module)
      Overrides:
      install in class com.google.inject.AbstractModule
    • configure

      protected abstract void configure()
      Overrides:
      configure in class com.google.inject.AbstractModule