org.apache.tuscany.sca.databinding
Interface DataBindingExtensionPoint

All Known Implementing Classes:
DefaultDataBindingExtensionPoint

public interface DataBindingExtensionPoint

An extension point for data binding extensions.


Method Summary
 void addDataBinding(DataBinding dataBinding)
          Register a data binding
 DataBinding getDataBinding(java.lang.String id)
          Look up a data binding by id
 boolean introspectType(DataType dataType, Operation operation)
          Introspect the java class to figure out what DataType supports it.
 DataType introspectType(java.lang.Object value, Operation operation)
          Introspect the value to figure out the corresponding DataType
 DataBinding removeDataBinding(java.lang.String id)
          Unregister a data binding
 

Method Detail

addDataBinding

void addDataBinding(DataBinding dataBinding)
Register a data binding

Parameters:
dataBinding -

getDataBinding

DataBinding getDataBinding(java.lang.String id)
Look up a data binding by id

Parameters:
id - The name of the databinding
Returns:
The databinding

removeDataBinding

DataBinding removeDataBinding(java.lang.String id)
Unregister a data binding

Parameters:
id -
Returns:
The unregistered databinding

introspectType

boolean introspectType(DataType dataType,
                       Operation operation)
Introspect the java class to figure out what DataType supports it.

Parameters:
dataType - The initial data type
operation - TODO
Returns:
A DataType representing the java type or null if no databinding recognizes the java type

introspectType

DataType introspectType(java.lang.Object value,
                        Operation operation)
Introspect the value to figure out the corresponding DataType

Parameters:
value - The object value
operation - TODO
Returns:
A DataType representing the value or null if no databinding recognizes the value