Class TimeZoneResolverDefault
java.lang.Object
org.spincast.plugins.timezoneresolver.TimeZoneResolverDefault
- All Implemented Interfaces:
TimeZoneResolver
-
Constructor Summary
ConstructorsConstructorDescriptionTimeZoneResolverDefault(SpincastConfig spincastConfig, com.google.inject.Provider<RequestContext<?>> requestContextProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected TimeZoneprotected com.google.inject.Provider<RequestContext<?>>protected SpincastConfigThe best TimeZone to use.protected voidinit()
-
Constructor Details
-
TimeZoneResolverDefault
@Inject public TimeZoneResolverDefault(SpincastConfig spincastConfig, com.google.inject.Provider<RequestContext<?>> requestContextProvider)
-
-
Method Details
-
init
@Inject protected void init() -
getSpincastConfig
-
getRequestContextProvider
-
getValidTimeZoneIds
-
getDefaultTimeZone
-
getTimeZoneToUse
Description copied from interface:TimeZoneResolverThe best TimeZone to use.- Specified by:
getTimeZoneToUsein interfaceTimeZoneResolver- Returns:
- The best TimeZone to use. If none is found, returns
the default TimeZone, as defined by
SpincastConfig#getDefaultTimeZone()
-