|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConversionService
A service interface for retrieving type conversion executors. The returned command objects are thread-safe and may be safely cached for use by client code.
Method Summary | |
---|---|
java.lang.Class |
getClassByAlias(java.lang.String alias)
Return the class with the specified alias. |
ConversionExecutor |
getConversionExecutor(java.lang.Class sourceClass,
java.lang.Class targetClass)
Return a conversion executor command object capable of converting source objects of the specified sourceClass to instances of the targetClass . |
ConversionExecutor |
getConversionExecutorByTargetAlias(java.lang.Class sourceClass,
java.lang.String targetAlias)
Return a conversion executor command object capable of converting source objects of the specified sourceClass to target objects of the type associated with the specified alias. |
ConversionExecutor[] |
getConversionExecutorsForSource(java.lang.Class sourceClass)
Return all conversion executors capable of converting source objects of the the specified sourceClass . |
Method Detail |
---|
ConversionExecutor getConversionExecutor(java.lang.Class sourceClass, java.lang.Class targetClass) throws ConversionException
sourceClass
to instances of the targetClass
.
The returned ConversionExecutor is thread-safe and may safely be cached for use in client code.
sourceClass
- the source class to convert fromtargetClass
- the target class to convert to
ConversionException
- an exception occured retrieving a converter for the source-to-target pairConversionExecutor getConversionExecutorByTargetAlias(java.lang.Class sourceClass, java.lang.String targetAlias) throws ConversionException
sourceClass
to target objects of the type associated with the specified alias.
sourceClass
- the sourceClasstargetAlias
- the target alias
ConversionException
- an exception occured retrieving a converter for the source-to-target pairConversionExecutor[] getConversionExecutorsForSource(java.lang.Class sourceClass) throws ConversionException
sourceClass
.
sourceClass
- the source class to convert from
ConversionException
- an exception occured retrieving the convertersjava.lang.Class getClassByAlias(java.lang.String alias) throws ConversionException
alias
- the class alias
ConversionException
- when an error occurs looking up the class by alias
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |