public final class TypeConvertorRegistry
extends java.lang.Object
| Constructor and Description |
|---|
TypeConvertorRegistry(AbstractProperties properties)
Create a new registry instance of type convertors.
|
| Modifier and Type | Method and Description |
|---|---|
TypeConvertor |
getConvertor(java.lang.Class<?> fromType,
java.lang.Class<?> toType,
java.lang.String parameter)
Returns a type convertor initialized with parameter if specified.
|
public TypeConvertorRegistry(AbstractProperties properties)
properties - The properties to use.public TypeConvertor getConvertor(java.lang.Class<?> fromType, java.lang.Class<?> toType, java.lang.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.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com