Summary
[Expand]
Inherited Methods |
From class
org.springframework.core.convert.support.GenericConversionService
void
|
addConverter(Converter<?, ?> converter)
Add a plain converter to this registry.
|
void
|
addConverter(GenericConverter converter)
Add a generic converter to this registry.
|
void
|
addConverterFactory(ConverterFactory<?, ?> converterFactory)
Add a ranged converter factory to this registry.
|
boolean
|
canConvert(TypeDescriptor sourceType, TypeDescriptor targetType)
Returns true if objects of sourceType can be converted to the targetType.
|
boolean
|
canConvert(Class<?> sourceType, Class<?> targetType)
Returns true if objects of sourceType can be converted to targetType.
|
<T>
T
|
convert(Object source, Class<T> targetType)
Convert the source to targetType.
|
Object
|
convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType)
Convert the source to targetType.
|
Object
|
convertNullSource(TypeDescriptor sourceType, TypeDescriptor targetType)
Template method to convert a null source.
|
GenericConverter
|
getConverter(TypeDescriptor sourceType, TypeDescriptor targetType)
Hook method to lookup the converter for a given sourceType/targetType pair.
|
GenericConverter
|
getDefaultConverter(TypeDescriptor sourceType, TypeDescriptor targetType)
Return the default converter if no converter is found for the given sourceType/targetType pair.
|
void
|
removeConvertible(Class<?> sourceType, Class<?> targetType)
Remove any converters from sourceType to targetType.
|
String
|
toString()
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
org.springframework.core.convert.ConversionService
|
From interface
org.springframework.core.convert.converter.ConverterRegistry
|
Public Constructors
public
DefaultConversionService
()
Public Methods
public
static
void
addDefaultConverters
(GenericConversionService conversionService)
Add converters appropriate for most environments.
Parameters
conversionService
| the service to register default formatters against
|