org.apache.tuscany.sca.implementation.java.context
Class ReflectiveInstanceWrapper<T>

java.lang.Object
  extended by org.apache.tuscany.sca.implementation.java.context.ReflectiveInstanceWrapper<T>
All Implemented Interfaces:
InstanceWrapper<T>

public class ReflectiveInstanceWrapper<T>
extends java.lang.Object
implements InstanceWrapper<T>


Constructor Summary
ReflectiveInstanceWrapper(T instance, EventInvoker<T> initInvoker, EventInvoker<T> destroyInvoker)
           
 
Method Summary
 T getInstance()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectiveInstanceWrapper

public ReflectiveInstanceWrapper(T instance,
                                 EventInvoker<T> initInvoker,
                                 EventInvoker<T> destroyInvoker)
Method Detail

getInstance

public T getInstance()
Specified by:
getInstance in interface InstanceWrapper<T>
Returns:

start

public void start()
           throws TargetInitializationException
Specified by:
start in interface InstanceWrapper<T>
Throws:
TargetInitializationException

stop

public void stop()
          throws TargetDestructionException
Specified by:
stop in interface InstanceWrapper<T>
Throws:
TargetDestructionException