java.lang.Object | |||
↳ | org.springframework.core.convert.support.GenericConversionService | ||
↳ | org.springframework.format.support.FormattingConversionService | ||
↳ | org.springframework.format.support.DefaultFormattingConversionService |
A specialization of FormattingConversionService
configured by default with
converters and formatters appropriate for most applications.
Designed for direct instantiation but also exposes the static addDefaultFormatters(FormatterRegistry)
utility method for ad hoc use against any FormatterRegistry
instance, just
as DefaultConversionService
exposes its own
addDefaultConverters
method.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new
DefaultFormattingConversionService with the set of
default converters and
default formatters . | |||||||||||
Create a new
DefaultFormattingConversionService with the set of
default converters and,
based on the value of registerDefaultFormatters , the set of
default formatters . | |||||||||||
Create a new
DefaultFormattingConversionService with the set of
default converters and,
based on the value of registerDefaultFormatters , the set of
default formatters |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add formatters appropriate for most environments, including number formatters and a Joda-Time
date formatter if Joda-Time is present on the classpath.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.format.support.FormattingConversionService
| |||||||||||
From class
org.springframework.core.convert.support.GenericConversionService
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.context.EmbeddedValueResolverAware
| |||||||||||
From interface
org.springframework.core.convert.ConversionService
| |||||||||||
From interface
org.springframework.core.convert.converter.ConverterRegistry
| |||||||||||
From interface
org.springframework.format.FormatterRegistry
|
Create a new DefaultFormattingConversionService
with the set of
default converters
and
default formatters
.
Create a new DefaultFormattingConversionService
with the set of
default converters
and,
based on the value of registerDefaultFormatters
, the set of
default formatters
.
registerDefaultFormatters | whether to register default formatters |
---|
Create a new DefaultFormattingConversionService
with the set of
default converters
and,
based on the value of registerDefaultFormatters
, the set of
default formatters
embeddedValueResolver | delegated to setEmbeddedValueResolver(StringValueResolver)
prior to calling addDefaultFormatters(FormatterRegistry) . |
---|---|
registerDefaultFormatters | whether to register default formatters |
Add formatters appropriate for most environments, including number formatters and a Joda-Time date formatter if Joda-Time is present on the classpath.
formatterRegistry | the service to register default formatters against |
---|