Class SpincastCorePluginModule

java.lang.Object
com.google.inject.AbstractModule
org.spincast.core.guice.SpincastGuiceModuleBase
org.spincast.core.guice.SpincastCorePluginModule
All Implemented Interfaces:
com.google.inject.Module, SpincastContextTypesInterested

public class SpincastCorePluginModule extends SpincastGuiceModuleBase
  • Field Details

    • isSpincastRequestScopedBound

      protected boolean isSpincastRequestScopedBound
  • Constructor Details

    • SpincastCorePluginModule

      public SpincastCorePluginModule()
    • SpincastCorePluginModule

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

    • configure

      protected void configure()
      Specified by:
      configure in class SpincastGuiceModuleBase
    • validateRequirements

      protected void validateRequirements()
      Validates the bindings that have to be done by other modules.
    • bindSpincastInitValidator

      protected void bindSpincastInitValidator()
    • bindRequestContextType

      protected void bindRequestContextType()
    • bindWebsocketContextType

      protected void bindWebsocketContextType()
    • bindSpincastRequestScope

      protected void bindSpincastRequestScope()
      Note that can only be called once. It can't be called a second time when we use Modules.override(com.google.inject.Module...)! For infos on custom scopes:
    • bindRequestContextInRequestScope

      protected void bindRequestContextInRequestScope()
    • bindRequestContextBaseDeps

      protected void bindRequestContextBaseDeps()
    • bindSpincastFilters

      protected void bindSpincastFilters()
    • getCorsFilterClass

      protected Class<? extends CorsFilter> getCorsFilterClass()
    • getSpincastFiltersKey

      protected com.google.inject.Key<SpincastFiltersDefault> getSpincastFiltersKey()
    • bindDefaultPredefinedRouteParamPatternsBinder

      protected void bindDefaultPredefinedRouteParamPatternsBinder()
    • bindRequestContextFactory

      protected void bindRequestContextFactory()
    • bindFrontController

      protected void bindFrontController()
    • bindSpincastUtilsClass

      protected void bindSpincastUtilsClass()
    • bindJsonObjectFactory

      protected void bindJsonObjectFactory()
    • getFrontControllerKey

      protected com.google.inject.Key<?> getFrontControllerKey()
    • getSpincastUtilsKey

      protected com.google.inject.Key<?> getSpincastUtilsKey()
    • getJsonObjectImplClass

      protected Class<? extends JsonObject> getJsonObjectImplClass()
    • getJsonArrayImplClass

      protected Class<? extends JsonArray> getJsonArrayImplClass()
    • bindWebsocketEndpointHandlerFactory

      protected void bindWebsocketEndpointHandlerFactory()
    • getWebsocketEndpointHandlerKey

      protected com.google.inject.Key<?> getWebsocketEndpointHandlerKey()
    • bindWebsocketContextFactory

      protected void bindWebsocketContextFactory()
    • bindWebsocketEndpointToControllerManager

      protected void bindWebsocketEndpointToControllerManager()
    • bindCoreDictionaryMessages

      protected void bindCoreDictionaryMessages()
    • getSpincastCoreDictionaryEntriesImplClass

      protected Class<? extends SpincastCoreDictionaryEntries> getSpincastCoreDictionaryEntriesImplClass()
    • getWebsocketEndpointToControllerKeysMapClass

      protected Class<? extends WebsocketEndpointToControllerManager> getWebsocketEndpointToControllerKeysMapClass()
    • bindServerUtils

      protected void bindServerUtils()
    • getServerUtilsImplClass

      protected Class<? extends ServerUtils> getServerUtilsImplClass()
    • bindSSLContextFactory

      protected void bindSSLContextFactory()
    • getSSLContextFactoryClass

      protected Class<? extends SSLContextFactory> getSSLContextFactoryClass()
    • bindValidators

      protected void bindValidators()
    • getValidatorsImplClass

      protected Class<? extends Validators> getValidatorsImplClass()
    • bindFormFactory

      protected void bindFormFactory()
    • getFormImplClass

      protected Class<? extends Form> getFormImplClass()
    • bindValidationFactory

      protected void bindValidationFactory()
    • getValidationSetImplClass

      protected Class<? extends ValidationSet> getValidationSetImplClass()
    • getValidationMessageImplClass

      protected Class<? extends ValidationMessage> getValidationMessageImplClass()
    • bindFlashMessageFactory

      protected void bindFlashMessageFactory()
    • getFlashMessageImplClass

      protected Class<? extends FlashMessage> getFlashMessageImplClass()
    • bindFlashMessagesHolder

      protected void bindFlashMessagesHolder()
    • getFlashMessagesHolderImplClass

      protected Class<? extends FlashMessagesHolder> getFlashMessagesHolderImplClass()
    • bindObjectConverter

      protected void bindObjectConverter()
    • getObjectConverterImplClass

      protected Class<? extends ObjectConverter> getObjectConverterImplClass()
    • bindCookieFactory

      protected void bindCookieFactory()
    • getCookieImplClass

      protected Class<? extends Cookie> getCookieImplClass()
    • bindTestingModeFlag

      protected void bindTestingModeFlag()
      Currently, we set the @TestingMode flag to "true" if a GuiceTweaker exists or if JUnit/TestNG can be detected in the stacktrace.
    • spincastInit

      protected void spincastInit()
    • bindServerStartedListenersMultibinder

      protected void bindServerStartedListenersMultibinder()
    • bindsInterceptors

      protected void bindsInterceptors()
    • bindServerStartedInterceptor

      protected void bindServerStartedInterceptor()