Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.databinding
Interface PullTransformer<S,R>

Type Parameters:
S - The source data type
R - the target data type
All Superinterfaces:
Transformer
All Known Implementing Classes:
Java2SimpleTypeTransformer, SimpleType2JavaTransformer

public interface PullTransformer<S,R>
extends Transformer

PullTransformer transforms data from one binding format to the other one which can be directly consumed


Method Summary
 R transform(S source, TransformationContext context)
          Transform source data into the result type.
 
Methods inherited from interface org.apache.tuscany.spi.databinding.Transformer
getSourceDataBinding, getTargetDataBinding, getWeight
 

Method Detail

transform

R transform(S source,
            TransformationContext context)
Transform source data into the result type.

Parameters:
source - The source data
context - The context for the transformation
Returns:
The transformed result

Apache Tuscany SCA Kernel Sub-Project

-