@Deprecated public final class JodaTimeContextHolder extends Object
JodaTimeContext
with user-specific Joda-Time settings.LocaleContextHolder
Modifier and Type | Method and Description |
---|---|
static DateTimeFormatter |
getFormatter(DateTimeFormatter formatter,
Locale locale)
Deprecated.
Obtain a DateTimeFormatter with user-specific settings applied to the given base Formatter.
|
static JodaTimeContext |
getJodaTimeContext()
Deprecated.
Return the JodaTimeContext associated with the current thread, if any.
|
static void |
resetJodaTimeContext()
Deprecated.
Reset the JodaTimeContext for the current thread.
|
static void |
setJodaTimeContext(JodaTimeContext jodaTimeContext)
Deprecated.
Associate the given JodaTimeContext with the current thread.
|
public static void resetJodaTimeContext()
public static void setJodaTimeContext(@Nullable JodaTimeContext jodaTimeContext)
jodaTimeContext
- the current JodaTimeContext,
or null
to reset the thread-bound context@Nullable public static JodaTimeContext getJodaTimeContext()
null
if nonepublic static DateTimeFormatter getFormatter(DateTimeFormatter formatter, @Nullable Locale locale)
formatter
- the base formatter that establishes default formatting rules
(generally user independent)locale
- the current user locale (may be null
if not known)