|
Spring Framework | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.core.convert.support.GenericConversionService
org.springframework.core.convert.support.DefaultConversionService
public class DefaultConversionService
A specialization of GenericConversionService
configured by default with
converters appropriate for most environments.
Designed for direct instantiation but also exposes the static
addDefaultConverters(ConverterRegistry)
utility method for ad hoc use against any
ConverterRegistry
instance.
Constructor Summary | |
---|---|
DefaultConversionService()
Create a new DefaultConversionService with the set of
default converters. |
Method Summary | |
---|---|
static void |
addDefaultConverters(ConverterRegistry converterRegistry)
Add converters appropriate for most environments. |
Methods inherited from class org.springframework.core.convert.support.GenericConversionService |
---|
addConverter, addConverter, addConverter, addConverterFactory, canConvert, canConvert, convert, convert, convert, convertNullSource, getConverter, getDefaultConverter, removeConvertible, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultConversionService()
DefaultConversionService
with the set of
default converters.
Method Detail |
---|
public static void addDefaultConverters(ConverterRegistry converterRegistry)
converterRegistry
- the registry of converters to add to (must also be castable to ConversionService)
java.lang.ClassCastException
- if the converterRegistry could not be cast to a ConversionService
|
Spring Framework | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |