public interface SpincastPlugin extends SpincastContextTypesInterested
| Modifier and Type | Method and Description |
|---|---|
com.google.inject.Module |
apply(com.google.inject.Module currentModule)
Applies the plugin.
|
void |
createdGuiceInjector(com.google.inject.Injector injector)
Once all the plugins have been applied,
this method is called with the resulting
Guice injector.
|
String |
getId()
The id of the plugin.
|
Set<String> |
getPluginsToDisable()
If required, the ids of plugins that shouldn't
be installed.
|
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.
|
String getId()
com.google.inject.Module apply(com.google.inject.Module currentModule)
The plugin can add bindings to the current Guice module, can modify it and can inspect it in order to decide what to bind or not.
void setRequestContextImplementationClass(Class<? extends RequestContext<?>> requestContextImplementationClass)
setRequestContextImplementationClass in interface SpincastContextTypesInterestedvoid setWebsocketContextImplementationClass(Class<? extends WebsocketContext<?>> websocketContextImplementationClass)
setWebsocketContextImplementationClass in interface SpincastContextTypesInterestedSet<String> getPluginsToDisable()
This plugin is repsonsible to bind any components that won't be bound because it mark some plugins as to be ignored.
void createdGuiceInjector(com.google.inject.Injector injector)
Copyright © 2017. All rights reserved.