Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.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
 Object mediate(Object source, DataType sourceDataType, DataType targetDataType, Map<Class<?>,Object> context)
          Mediate the data from the source type to the target type
 void mediate(Object source, Object target, DataType sourceDataType, DataType targetDataType, Map<Class<?>,Object> context)
          Mediate the source data into the target which is a sink to receive the data
 

Method Detail

mediate

Object mediate(Object source,
               DataType sourceDataType,
               DataType targetDataType,
               Map<Class<?>,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(Object source,
             Object target,
             DataType sourceDataType,
             DataType targetDataType,
             Map<Class<?>,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

Apache Tuscany SCA Kernel Sub-Project

-