org.simantics.databoard.adapter
Class AbstractAdapter

java.lang.Object
  extended by org.simantics.databoard.adapter.AbstractAdapter
All Implemented Interfaces:
Adapter
Direct Known Subclasses:
PassThruAdapter

public abstract class AbstractAdapter
extends java.lang.Object
implements Adapter


Constructor Summary
AbstractAdapter()
           
 
Method Summary
 java.lang.Object adaptUnchecked(java.lang.Object obj)
          Adapt instance of one binding to format of another binding.
 void finalizeConstruction()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.simantics.databoard.adapter.Adapter
adapt
 

Constructor Detail

AbstractAdapter

public AbstractAdapter()
Method Detail

adaptUnchecked

public java.lang.Object adaptUnchecked(java.lang.Object obj)
                                throws RuntimeAdaptException
Description copied from interface: Adapter
Adapt instance of one binding to format of another binding. Note! adapt may recycle the argument (use it in the result). This dependes on the implementation. Cloning adapter recycles only immutable instances.

Specified by:
adaptUnchecked in interface Adapter
Parameters:
obj - source instance
Returns:
result
Throws:
RuntimeAdaptException

finalizeConstruction

public void finalizeConstruction()