Package org.spincast.core.guice
Class SpincastPluginBase
java.lang.Object
org.spincast.core.guice.SpincastPluginBase
- All Implemented Interfaces:
SpincastContextTypesInterested
,SpincastPlugin
- Direct Known Subclasses:
SpincastAttemptsLimiterPlugin
,SpincastConfigPlugin
,SpincastCorePlugin
,SpincastCryptoPlugin
,SpincastCssAutoprefixerPlugin
,SpincastCssYuiCompressorPlugin
,SpincastDateFormatterPlugin
,SpincastDictionaryPlugin
,SpincastFlywayUtilsPlugin
,SpincastFormsProtectionPlugin
,SpincastGsonPlugin
,SpincastHotSwapPlugin
,SpincastHttpCachingPlugin
,SpincastHttpClientPlugin
,SpincastJacksonJsonPlugin
,SpincastJacksonXmlPlugin
,SpincastJdbcPlugin
,SpincastJsClosureCompilerPlugin
,SpincastLocaleResolverPlugin
,SpincastLogbackUtilsPlugin
,SpincastOpenApiBottomUpPlugin
,SpincastPebblePlugin
,SpincastProcessUtilsPlugin
,SpincastRequestPlugin
,SpincastResponsePlugin
,SpincastRoutingPlugin
,SpincastScheduledTasksPlugin
,SpincastSessionPlugin
,SpincastSwaggerUiPlugin
,SpincastTemplatingAddonPlugin
,SpincastTimeZoneResolverPlugin
,SpincastUndertowPlugin
,SpincastVariablesPlugin
,SpincastWatermarkerPlugin
Suggested base class for a Spincast plugin.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createdGuiceInjector
(com.google.inject.Injector injector) Once all the plugins have been applied, this method is called with the resulting Guice injector.If required, the ids of plugins that shouldn't be installed.protected Class<? extends RequestContext<?>>
protected Class<? extends WebsocketContext<?>>
protected void
setContextTypes
(com.google.inject.Module module) 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.spincast.core.guice.SpincastPlugin
apply, getId
-
Constructor Details
-
SpincastPluginBase
public SpincastPluginBase()
-
-
Method Details
-
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
-
getRequestContextImplementationClass
-
getWebsocketContextImplementationClass
-
getPluginsToDisable
Description copied from interface:SpincastPlugin
If required, the ids of plugins that shouldn't be installed.This plugin is repsonsible to bind any components that won't be bound because it marks some plugins as "to be ignored".
- Specified by:
getPluginsToDisable
in interfaceSpincastPlugin
-
createdGuiceInjector
public void createdGuiceInjector(com.google.inject.Injector injector) Description copied from interface:SpincastPlugin
Once all the plugins have been applied, this method is called with the resulting Guice injector.- Specified by:
createdGuiceInjector
in interfaceSpincastPlugin
-
setContextTypes
protected void setContextTypes(com.google.inject.Module module)
-