org.apache.tuscany.sca.databinding.javabeans
Class JavaBeansDataBinding

java.lang.Object
  extended by org.apache.tuscany.sca.databinding.impl.BaseDataBinding
      extended by org.apache.tuscany.sca.databinding.javabeans.JavaBeansDataBinding
All Implemented Interfaces:
DataBinding
Direct Known Subclasses:
JavaExceptionDataBinding

public class JavaBeansDataBinding
extends BaseDataBinding

DataBinding for JavaBeans


Field Summary
static int HEAVY_WEIGHT
          Defining a weight to a very high number so that the transformer won't be picked up by other paths unless it's the only available path
static java.lang.String NAME
           
 
Fields inherited from interface org.apache.tuscany.sca.databinding.DataBinding
IDL_FAULT, IDL_INPUT, IDL_OUTPUT
 
Constructor Summary
  JavaBeansDataBinding()
           
protected JavaBeansDataBinding(java.lang.String name, java.lang.Class<?> baseType)
           
 
Method Summary
 java.lang.Object copy(java.lang.Object arg, DataType dataType, Operation operation)
          Make a copy of the object for "pass-by-value" semantics.
protected  java.io.ObjectInputStream getObjectInputStream(java.io.InputStream is, java.lang.ClassLoader cl)
           
protected  java.io.ObjectOutputStream getObjectOutputStream(java.io.OutputStream os)
           
 
Methods inherited from class org.apache.tuscany.sca.databinding.impl.BaseDataBinding
getName, getWrapperHandler, getXMLTypeHelper, introspect, introspect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEAVY_WEIGHT

public static final int HEAVY_WEIGHT
Defining a weight to a very high number so that the transformer won't be picked up by other paths unless it's the only available path

See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

JavaBeansDataBinding

public JavaBeansDataBinding()

JavaBeansDataBinding

protected JavaBeansDataBinding(java.lang.String name,
                               java.lang.Class<?> baseType)
Method Detail

copy

public java.lang.Object copy(java.lang.Object arg,
                             DataType dataType,
                             Operation operation)
Description copied from interface: DataBinding
Make a copy of the object for "pass-by-value" semantics.

Specified by:
copy in interface DataBinding
Overrides:
copy in class BaseDataBinding
Parameters:
arg - source object to copy
dataType - The data type
operation - The operation
Returns:
copy of the object passed in as argument

getObjectOutputStream

protected java.io.ObjectOutputStream getObjectOutputStream(java.io.OutputStream os)
                                                    throws java.io.IOException
Throws:
java.io.IOException

getObjectInputStream

protected java.io.ObjectInputStream getObjectInputStream(java.io.InputStream is,
                                                         java.lang.ClassLoader cl)
                                                  throws java.io.IOException
Throws:
java.io.IOException