Tuscany Core

org.apache.tuscany.core.injection
Class PojoObjectFactory<T>

java.lang.Object
  extended by org.apache.tuscany.core.injection.PojoObjectFactory<T>
All Implemented Interfaces:
ObjectFactory<T>

public class PojoObjectFactory<T>
extends Object
implements ObjectFactory<T>

Creates new instances of a Java class, calling a given set of injectors to configure the instance

Version:
$Rev: 408581 $ $Date: 2006-05-21 23:34:24 -0700 (Sun, 21 May 2006) $
See Also:
Injector

Constructor Summary
PojoObjectFactory(Constructor<T> ctr, List<ObjectFactory> initParams, List<Injector> setters)
           
 
Method Summary
 T getInstance()
          Return a instance of the type that this factory creates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PojoObjectFactory

public PojoObjectFactory(Constructor<T> ctr,
                         List<ObjectFactory> initParams,
                         List<Injector> setters)
Method Detail

getInstance

public T getInstance()
              throws ObjectCreationException
Description copied from interface: ObjectFactory
Return a instance of the type that this factory creates.

Specified by:
getInstance in interface ObjectFactory<T>
Returns:
a instance from this factory
Throws:
ObjectCreationException

Tuscany Core

-