org.apache.tuscany.sca.databinding
Interface Mediator


public interface Mediator

This interface will be used as a Tuscany system service to perform data mediations Mediate the data from one type to the other one


Method Summary
 DataBindingExtensionPoint getDataBindings()
          Get the DataBindings used by this mediator.
 TransformerExtensionPoint getTransformers()
          Get the Transformers used by this mediator.
 java.lang.Object mediate(java.lang.Object source, DataType sourceDataType, DataType targetDataType, java.util.Map<java.lang.String,java.lang.Object> context)
          Mediate the data from the source type to the target type
 void mediate(java.lang.Object source, java.lang.Object target, DataType sourceDataType, DataType targetDataType, java.util.Map<java.lang.String,java.lang.Object> context)
          Mediate the source data into the target which is a sink to receive the data
 

Method Detail

mediate

java.lang.Object mediate(java.lang.Object source,
                         DataType sourceDataType,
                         DataType targetDataType,
                         java.util.Map<java.lang.String,java.lang.Object> context)
Mediate the data from the source type to the target type

Parameters:
source - The data to be mediated
sourceDataType - Data type for the source data
targetDataType - Data type for the target data
context -
Returns:

mediate

void mediate(java.lang.Object source,
             java.lang.Object target,
             DataType sourceDataType,
             DataType targetDataType,
             java.util.Map<java.lang.String,java.lang.Object> context)
Mediate the source data into the target which is a sink to receive the data

Parameters:
source - The data to be mediated
target - The sink to receive data
sourceDataType - Data type for the source data
targetDataType - Data type for the target data

getDataBindings

DataBindingExtensionPoint getDataBindings()
Get the DataBindings used by this mediator.

Returns:

getTransformers

TransformerExtensionPoint getTransformers()
Get the Transformers used by this mediator.

Returns: