Package org.springframework.beans
Class SimpleTypeConverter
java.lang.Object
org.springframework.beans.PropertyEditorRegistrySupport
org.springframework.beans.TypeConverterSupport
org.springframework.beans.SimpleTypeConverter
- All Implemented Interfaces:
PropertyEditorRegistry
,TypeConverter
Simple implementation of the
TypeConverter
interface that does not operate on
a specific target object. This is an alternative to using a full-blown BeanWrapperImpl
instance for arbitrary type conversion needs, while using the very same conversion
algorithm (including delegation to PropertyEditor
and
ConversionService
) underneath.
Note: Due to its reliance on PropertyEditors
,
SimpleTypeConverter is not thread-safe. Use a separate instance for each thread.
- Since:
- 2.0
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.beans.TypeConverterSupport
convertIfNecessary, convertIfNecessary, convertIfNecessary, convertIfNecessary
Methods inherited from class org.springframework.beans.PropertyEditorRegistrySupport
copyCustomEditorsTo, copyDefaultEditorsTo, findCustomEditor, getConversionService, getDefaultEditor, getPropertyType, guessPropertyTypeFromEditors, hasCustomEditorForElement, overrideDefaultEditor, registerCustomEditor, registerCustomEditor, registerDefaultEditors, setConversionService, useConfigValueEditors
-
Constructor Details
-
SimpleTypeConverter
public SimpleTypeConverter()
-