public.javadoc.org.spincast.plugins.timezoneresolver.TimeZoneResolverDefault.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
TimeZoneResolverDefault (org.spincast:spincast-framework 1.2.0 API)
org.spincast.plugins.timezoneresolver
Class TimeZoneResolverDefault
- java.lang.Object
-
- org.spincast.plugins.timezoneresolver.TimeZoneResolverDefault
-
- All Implemented Interfaces:
- TimeZoneResolver
public class TimeZoneResolverDefault
extends Object
implements TimeZoneResolver
-
-
Constructor Summary
Constructors
Constructor and Description
TimeZoneResolverDefault(SpincastConfig spincastConfig,
com.google.inject.Provider<RequestContext<?>> requestContextProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
protected TimeZone
getDefaultTimeZone()
protected com.google.inject.Provider<RequestContext<?>>
getRequestContextProvider()
protected SpincastConfig
getSpincastConfig()
TimeZone
getTimeZoneToUse()
The best TimeZone to use.
protected Set<String>
getValidTimeZoneIds()
protected void
init()
-
-
Constructor Detail
-
TimeZoneResolverDefault
@Inject
public TimeZoneResolverDefault(SpincastConfig spincastConfig,
com.google.inject.Provider<RequestContext<?>> requestContextProvider)
-
Method Detail
-
init
@Inject
protected void init()
-
getSpincastConfig
protected SpincastConfig getSpincastConfig()
-
getRequestContextProvider
protected com.google.inject.Provider<RequestContext<?>> getRequestContextProvider()
-
getDefaultTimeZone
protected TimeZone getDefaultTimeZone()
-
getTimeZoneToUse
public TimeZone getTimeZoneToUse()
Description copied from interface: TimeZoneResolver
The best TimeZone to use.
- Specified by:
getTimeZoneToUse
in interface TimeZoneResolver
- Returns:
- The best TimeZone to use. If none is found, returns
the default TimeZone, as defined by
SpincastConfig#getDefaultTimeZone()
Copyright © 2019. All rights reserved.