T- the Kernel type managed by this
public interface Converter<T>
Converter is able to give a representation of an object owned by a Feature to another Feature. A
Converter is able to convert instances of one and only one Kernel type.
Converter is free to decide the kind of conversion to apply, depending on the managed type. For example, a
Converter for immutables instances of types such as
String will most likely return a copy (clone),
Converter for instances of types such as
InputStream will most likely return a wrapper on
the original object.
|Modifier and Type||Method and Description|
Converts an object owned by a Feature to another Feature.
Gets the Kernel type managed by this
T convert(T source, Feature targetOwner)
source- the source object to be converted
targetOwner- the owner of the converted object