Package org.spincast.core.guice
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 Summary
ConstructorDescriptionSpincastGuiceModuleBase
(Class<? extends RequestContext<?>> requestContextImplementationClass, Class<? extends WebsocketContext<?>> websocketContextImplementationClass) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
protected Class<? extends RequestContext<?>>
protected Class<? extends RequestContext<?>>
protected Class<? extends WebsocketContext<?>>
protected Type
protected void
install
(com.google.inject.Module module) 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.protected <T> com.google.inject.Key<T>
parameterizeWithRequestContext
(Class<T> clazz) Get a version of the specified class parameterized with the request context type.protected <T> com.google.inject.Key<T>
parameterizeWithWebsocketContext
(Class<T> clazz) Get a version of the specified class parameterized with the Websocket context type.void
setRequestContextImplementationClass
(Class<? extends RequestContext<?>> requestContextImplementationClass) The implementation class to use for RequestContext.void
setWebsocketContextImplementationClass
(Class<? extends WebsocketContext<?>> websocketContextImplementationClass) The implementation class to use for WebsocletContext.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 Details
-
SpincastGuiceModuleBase
public SpincastGuiceModuleBase() -
SpincastGuiceModuleBase
public SpincastGuiceModuleBase(Class<? extends RequestContext<?>> requestContextImplementationClass, Class<? extends WebsocketContext<?>> websocketContextImplementationClass)
-
-
Method Details
-
getRequestContextImplementationClass
-
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 interfaceSpincastContextTypesInterested
-
setWebsocketContextImplementationClass
public void setWebsocketContextImplementationClass(Class<? extends WebsocketContext<?>> websocketContextImplementationClass) Description copied from interface:SpincastContextTypesInterested
The implementation class to use for WebsocletContext.- Specified by:
setWebsocketContextImplementationClass
in interfaceSpincastContextTypesInterested
-
getRequestContextInterface
-
getWebsocketContextInterface
-
parameterizeWithRequestContext
Get a version of the specified class parameterized with the request context type. -
parameterizeWithWebsocketContext
Get a version of the specified class parameterized with the Websocket context type. -
parameterizeWithContextInterfaces
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 classcom.google.inject.AbstractModule
-
configure
protected abstract void configure()- Overrides:
configure
in classcom.google.inject.AbstractModule
-