Package org.spincast.core.guice
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
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSpincastCorePluginModule
(Class<? extends RequestContext<?>> requestContextImplementationClass, Class<? extends WebsocketContext<?>> websocketContextImplementationClass) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
Note that can only be called once.protected void
protected void
protected void
Currently, we set the @TestingMode flag to "true" if a GuiceTweaker exists or if JUnit/TestNG can be detected in the stacktrace.protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected Class<? extends CorsFilter>
protected Class<? extends FlashMessage>
protected Class<? extends FlashMessagesHolder>
protected com.google.inject.Key<?>
protected Class<? extends JsonObject>
protected Class<? extends ObjectConverter>
protected Class<? extends ServerUtils>
protected Class<? extends SpincastCoreDictionaryEntries>
protected com.google.inject.Key<SpincastFiltersDefault>
protected com.google.inject.Key<?>
protected Class<? extends SSLContextFactory>
protected Class<? extends ValidationMessage>
protected Class<? extends ValidationSet>
protected Class<? extends Validators>
protected com.google.inject.Key<?>
protected Class<? extends WebsocketEndpointToControllerManager>
protected void
protected void
Validates the bindings that have to be done by other modules.Methods inherited from class org.spincast.core.guice.SpincastGuiceModuleBase
getRequestContextImplementationClass, getRequestContextInterface, getWebsocketContextImplementationClass, getWebsocketContextInterface, install, parameterizeWithContextInterfaces, parameterizeWithRequestContext, parameterizeWithWebsocketContext, setRequestContextImplementationClass, setWebsocketContextImplementationClass
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
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 classSpincastGuiceModuleBase
-
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 useModules.override(com.google.inject.Module...)
! For infos on custom scopes: -
bindRequestContextInRequestScope
protected void bindRequestContextInRequestScope() -
bindRequestContextBaseDeps
protected void bindRequestContextBaseDeps() -
bindSpincastFilters
protected void bindSpincastFilters() -
getCorsFilterClass
-
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
-
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
-
bindSSLContextFactory
protected void bindSSLContextFactory() -
getSSLContextFactoryClass
-
bindValidators
protected void bindValidators() -
getValidatorsImplClass
-
bindFormFactory
protected void bindFormFactory() -
getFormImplClass
-
bindValidationFactory
protected void bindValidationFactory() -
getValidationSetImplClass
-
getValidationMessageImplClass
-
bindFlashMessageFactory
protected void bindFlashMessageFactory() -
getFlashMessageImplClass
-
bindFlashMessagesHolder
protected void bindFlashMessagesHolder() -
getFlashMessagesHolderImplClass
-
bindObjectConverter
protected void bindObjectConverter() -
getObjectConverterImplClass
-
bindCookieFactory
protected void bindCookieFactory() -
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()
-