Tuscany Core

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

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

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

Returns a direct reference to a target within the same composite, i.e. the factory avoids creating proxies and returns the actual target instance

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

Constructor Summary
NonProxiedTargetFactory(ConfiguredService targetService, ContextResolver resolver)
          Constructs a reference object factory from a configured reference on a type
 
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

NonProxiedTargetFactory

public NonProxiedTargetFactory(ConfiguredService targetService,
                               ContextResolver resolver)
                        throws FactoryInitException
Constructs a reference object factory from a configured reference on a type

Throws:
FactoryInitException
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

-