Package org.spincast.core.exchange
Class RequestContextBaseDeps<R extends RequestContext<R>>
java.lang.Object
org.spincast.core.exchange.RequestContextBaseDeps<R>
A wrapper object for the dependencies required by RequestContextBase.
We inject this wrapper instead of injecting each individual dependency.
We do this because the RequestContextBase 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 RequestContextBase without breaking the client classes.
-
Constructor Summary
ConstructorDescriptionRequestContextBaseDeps
(LocaleResolver localeResolver, TimeZoneResolver timeZoneResolver, JsonManager jsonManager, XmlManager xmlManager, com.google.inject.Provider<RequestRequestContextAddon<R>> requestRequestContextAddonProvider, com.google.inject.Provider<RoutingRequestContextAddon<R>> routingRequestContextAddonProvider, com.google.inject.Provider<ResponseRequestContextAddon<R>> responseRequestContextAddonProvider, com.google.inject.Provider<VariablesRequestContextAddon<R>> variablesRequestContextAddonProvider, com.google.inject.Provider<TemplatingRequestContextAddon<R>> templatingRequestContextAddonProvider, com.google.inject.Provider<CacheHeadersRequestContextAddon<R>> cacheHeadersRequestContextAddonProvider, com.google.inject.Provider<com.google.inject.Injector> injectorProvider) Constructor -
Method Summary
Modifier and TypeMethodDescriptioncom.google.inject.Provider<CacheHeadersRequestContextAddon<R>>
com.google.inject.Provider<com.google.inject.Injector>
com.google.inject.Provider<RequestRequestContextAddon<R>>
com.google.inject.Provider<ResponseRequestContextAddon<R>>
com.google.inject.Provider<RoutingRequestContextAddon<R>>
com.google.inject.Provider<TemplatingRequestContextAddon<R>>
com.google.inject.Provider<VariablesRequestContextAddon<R>>
-
Constructor Details
-
RequestContextBaseDeps
@Inject public RequestContextBaseDeps(LocaleResolver localeResolver, TimeZoneResolver timeZoneResolver, JsonManager jsonManager, XmlManager xmlManager, com.google.inject.Provider<RequestRequestContextAddon<R>> requestRequestContextAddonProvider, com.google.inject.Provider<RoutingRequestContextAddon<R>> routingRequestContextAddonProvider, com.google.inject.Provider<ResponseRequestContextAddon<R>> responseRequestContextAddonProvider, com.google.inject.Provider<VariablesRequestContextAddon<R>> variablesRequestContextAddonProvider, com.google.inject.Provider<TemplatingRequestContextAddon<R>> templatingRequestContextAddonProvider, com.google.inject.Provider<CacheHeadersRequestContextAddon<R>> cacheHeadersRequestContextAddonProvider, com.google.inject.Provider<com.google.inject.Injector> injectorProvider) Constructor
-
-
Method Details
-
getLocaleResolver
-
getTimeZoneResolver
-
getJsonManager
-
getXmlManager
-
getRequestRequestContextAddonProvider
public com.google.inject.Provider<RequestRequestContextAddon<R>> getRequestRequestContextAddonProvider() -
getRoutingRequestContextAddonProvider
public com.google.inject.Provider<RoutingRequestContextAddon<R>> getRoutingRequestContextAddonProvider() -
getResponseRequestContextAddonProvider
public com.google.inject.Provider<ResponseRequestContextAddon<R>> getResponseRequestContextAddonProvider() -
getVariablesRequestContextAddonProvider
public com.google.inject.Provider<VariablesRequestContextAddon<R>> getVariablesRequestContextAddonProvider() -
getTemplatingRequestContextAddonProvider
public com.google.inject.Provider<TemplatingRequestContextAddon<R>> getTemplatingRequestContextAddonProvider() -
getCacheHeadersRequestContextAddonProvider
public com.google.inject.Provider<CacheHeadersRequestContextAddon<R>> getCacheHeadersRequestContextAddonProvider() -
getInjectorProvider
public com.google.inject.Provider<com.google.inject.Injector> getInjectorProvider()
-