Class TimeZoneResolverDefault
java.lang.Object
org.spincast.plugins.timezoneresolver.TimeZoneResolverDefault
- All Implemented Interfaces:
TimeZoneResolver
-
Constructor Summary
ConstructorDescriptionTimeZoneResolverDefault
(SpincastConfig spincastConfig, com.google.inject.Provider<RequestContext<?>> requestContextProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected TimeZone
protected com.google.inject.Provider<RequestContext<?>>
protected SpincastConfig
The best TimeZone to use.protected void
init()
-
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:TimeZoneResolver
The best TimeZone to use.- Specified by:
getTimeZoneToUse
in interfaceTimeZoneResolver
- Returns:
- The best TimeZone to use. If none is found, returns
the default TimeZone, as defined by
SpincastConfig#getDefaultTimeZone()
-