Tuscany Core

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

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

public class InterCompositeReferenceFactory<T>
extends java.lang.Object
implements ObjectFactory<T>

Returns a direct reference to a target service exposed in another composite, i.e. the factory avoids creating proxies and returns the actual target instance

Version:
$Rev: 384135 $ $Date: 2006-03-07 22:53:58 -0800 (Tue, 07 Mar 2006) $

Constructor Summary
InterCompositeReferenceFactory(java.lang.String targetName)
          Reference source is an external service, target is in another module
 
Method Summary
 T getInstance()
          Return a instance of the type that this factory creates.
 void setContextResolver(ContextResolver resolver)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterCompositeReferenceFactory

public InterCompositeReferenceFactory(java.lang.String targetName)
Reference source is an external service, target is in another module

Parameters:
targetName - the name of the target service
Method Detail

setContextResolver

public void setContextResolver(ContextResolver resolver)

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

-