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

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

public class ReflectiveInstanceFactory<T>
extends java.lang.Object
implements InstanceFactory<T>


Constructor Summary
ReflectiveInstanceFactory(java.lang.reflect.Constructor<T> ctr, ObjectFactory<?>[] ctrArgs, Injector<T>[] injectors, EventInvoker<T> initInvoker, EventInvoker<T> destroyInvoker)
           
 
Method Summary
 InstanceWrapper<T> newInstance()
          Creates a new instance of the component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectiveInstanceFactory

public ReflectiveInstanceFactory(java.lang.reflect.Constructor<T> ctr,
                                 ObjectFactory<?>[] ctrArgs,
                                 Injector<T>[] injectors,
                                 EventInvoker<T> initInvoker,
                                 EventInvoker<T> destroyInvoker)
Method Detail

newInstance

public InstanceWrapper<T> newInstance()
Description copied from interface: InstanceFactory
Creates a new instance of the component. All injected values must be set but any @Init methods must not have been invoked.

Specified by:
newInstance in interface InstanceFactory<T>
Returns:
A wrapper for the created component instance.