Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.databinding
Interface DataBindingRegistry


public interface DataBindingRegistry

The registry for data bindings


Method Summary
 DataBinding getDataBinding(String id)
          Look up a data binding by id
 DataType introspectType(Class<?> javaType)
          Introspect the java class to figure out what DataType supports it
 DataType introspectType(Object value)
          Introspect the value to figure out the corresponding DataType
 void register(DataBinding dataBinding)
          Register a data binding
 DataBinding unregister(String id)
          Unregister a data binding
 

Method Detail

register

void register(DataBinding dataBinding)
Register a data binding

Parameters:
dataBinding -

getDataBinding

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

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

unregister

DataBinding unregister(String id)
Unregister a data binding

Parameters:
id -
Returns:
The unregistered databinding

introspectType

DataType introspectType(Class<?> javaType)
Introspect the java class to figure out what DataType supports it

Parameters:
javaType - The java class or interface
Returns:
A DataType representing the java type or null if no databinding recognizes the java type

introspectType

DataType introspectType(Object value)
Introspect the value to figure out the corresponding DataType

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

Apache Tuscany SCA Kernel Sub-Project

-