Package org.spincast.core.websocket
Class WebsocketContextBaseDeps<W extends WebsocketContext<?>>
java.lang.Object
org.spincast.core.websocket.WebsocketContextBaseDeps<W>
A wrapper object for the dependencies required by WebsocketContextBase.
We inject this wrapper instead of injecting each individual dependency.
We do this because the WebsocketContextBase is made to be extended frequently
by developers and :
- We want it to be easily extended without having to inject too many dependencies in the child class.
- We want to keep using constructor injection instead of setter and field injection.
- By using a wrapper, we can add new dependencies to WebsocketContextBase without breaking the client classes.
-
Constructor Summary
ConstructorDescriptionWebsocketContextBaseDeps
(LocaleResolver localeResolver, TimeZoneResolver timeZoneResolver, JsonManager jsonManager, XmlManager xmlManager, TemplatingEngine templatingEngine, com.google.inject.Provider<com.google.inject.Injector> injectorProvider) Constructor -
Method Summary
Modifier and TypeMethodDescriptioncom.google.inject.Provider<com.google.inject.Injector>
-
Constructor Details
-
WebsocketContextBaseDeps
@Inject public WebsocketContextBaseDeps(LocaleResolver localeResolver, TimeZoneResolver timeZoneResolver, JsonManager jsonManager, XmlManager xmlManager, TemplatingEngine templatingEngine, com.google.inject.Provider<com.google.inject.Injector> injectorProvider) Constructor
-
-
Method Details
-
getLocaleResolver
-
getTimeZoneResolver
-
getJsonManager
-
getXmlManager
-
getTemplatingEngine
-
getInjectorProvider
public com.google.inject.Provider<com.google.inject.Injector> getInjectorProvider()
-