public final class TypeConvertorRegistry extends Object
Constructor and Description |
---|
TypeConvertorRegistry(AbstractProperties properties)
Create a new registry instance of type convertors.
|
Modifier and Type | Method and Description |
---|---|
TypeConvertor |
getConvertor(Class<?> fromType,
Class<?> toType,
String parameter)
Returns a type convertor initialized with parameter if specified.
|
public TypeConvertorRegistry(AbstractProperties properties)
properties
- The properties to use.public TypeConvertor getConvertor(Class<?> fromType, Class<?> toType, String parameter) throws MappingException
fromType
- The Java type to convert from.toType
- The Java type to convert to.parameter
- The parameter for the convertor (null if is not specified).MappingException
- No suitable convertor was found.Copyright © 2013. All rights reserved.