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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreatedGuiceInjector(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 voidsetContextTypes(com.google.inject.Module module) voidsetRequestContextImplementationClass(Class<? extends RequestContext<?>> requestContextImplementationClass) The implementation class to use for RequestContext.voidsetWebsocketContextImplementationClass(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, waitMethods 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:SpincastContextTypesInterestedThe implementation class to use for RequestContext.- Specified by:
setRequestContextImplementationClassin interfaceSpincastContextTypesInterested
-
setWebsocketContextImplementationClass
public void setWebsocketContextImplementationClass(Class<? extends WebsocketContext<?>> websocketContextImplementationClass) Description copied from interface:SpincastContextTypesInterestedThe implementation class to use for WebsocletContext.- Specified by:
setWebsocketContextImplementationClassin interfaceSpincastContextTypesInterested
-
getRequestContextImplementationClass
-
getWebsocketContextImplementationClass
-
getPluginsToDisable
Description copied from interface:SpincastPluginIf 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:
getPluginsToDisablein interfaceSpincastPlugin
-
createdGuiceInjector
public void createdGuiceInjector(com.google.inject.Injector injector) Description copied from interface:SpincastPluginOnce all the plugins have been applied, this method is called with the resulting Guice injector.- Specified by:
createdGuiceInjectorin interfaceSpincastPlugin
-
setContextTypes
protected void setContextTypes(com.google.inject.Module module)
-