org.ikasan.framework.component
Interface Converter<S,T>
- Type Parameters:
S - Type of object to be convertedT - Type of conversion result
public interface Converter<S,T>
Sometimes it is essential to translate data syntax (that is the representation of data)
being transported within a flow. Such translation is particularly necessary at both
ends of the flow: Initiator and Endpoint as data must be translated
from one domain object to another.
A Converter defines a contract for such translation.
- Author:
- Ikasan Development Teams
|
Method Summary |
T |
convert(S source)
Convert source object into target object of type T. |
convert
T convert(S source)
throws ConversionException
- Convert source object into target object of type T.
- Parameters:
source - object to be converted
- Returns:
- conversion result
- Throws:
ConversionException - if error converting S to T
Copyright © 2007-2012 Ikasan. All Rights Reserved.