public.javadoc.org.spincast.core.guice.SpincastCorePluginModule.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastCorePluginModule (org.spincast:spincast-framework 1.0.0 API)
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
public class SpincastCorePluginModule
extends SpincastGuiceModuleBase
-
-
Field Summary
Fields
Modifier and Type
Field and Description
protected boolean
isSpincastRequestScopedBound
-
Constructor Summary
Constructors
Constructor and Description
SpincastCorePluginModule()
SpincastCorePluginModule(Class<? extends RequestContext<?>> requestContextImplementationClass,
Class<? extends WebsocketContext<?>> websocketContextImplementationClass)
-
Method Summary
-
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
-
-
Constructor Detail
-
SpincastCorePluginModule
public SpincastCorePluginModule()
-
SpincastCorePluginModule
public SpincastCorePluginModule(Class<? extends RequestContext<?>> requestContextImplementationClass,
Class<? extends WebsocketContext<?>> websocketContextImplementationClass)
-
Method Detail
-
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:
- See Also:
https://github.com/google/guice/wiki/CustomScopes
-
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()
-
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()
-
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()
-
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()
Copyright © 2019. All rights reserved.