|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.castor.cpa.persistence.convertor.TypeConvertorRegistry
public final class TypeConvertorRegistry
Registry of type convertors.
Constructor Summary | |
---|---|
TypeConvertorRegistry(AbstractProperties properties)
Create a new registry instance of type convertors. |
Method Summary | |
---|---|
TypeConvertor |
getConvertor(java.lang.Class<?> fromType,
java.lang.Class<?> toType,
java.lang.String parameter)
Returns a type convertor initialized with parameter if specified. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypeConvertorRegistry(AbstractProperties properties)
properties
- The properties to use.Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |