public class DoubleDispatchConverter extends Object implements IConverter<Object,Object>
This is the result of the first stage in the conversion process. A
IConverter that bundles all IConverter instances that can
create a dedicated target type. Amongst the sub-converters the one is
selected that most closely supports the source object type.
| Constructor and Description |
|---|
DoubleDispatchConverter(Class targetType) |
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(Object source)
Convert the actual source object.
|
Class<?> |
getSourceType()
The source type the converter supports.
|
Class<?> |
getTargetType()
The target type the converter supports.
|
void |
registerConverter(IConverter converter) |
void |
unregisterConverter(IConverter converter) |
public DoubleDispatchConverter(Class targetType)
public Object convert(Object source) throws ConversionException
IConverterconvert in interface IConverter<Object,Object>ConversionExceptionpublic Class<?> getSourceType()
IConvertergetSourceType in interface IConverter<Object,Object>public Class<?> getTargetType()
IConvertergetTargetType in interface IConverter<Object,Object>public void registerConverter(IConverter converter)
public void unregisterConverter(IConverter converter)
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.