org.apache.tuscany.core.injection
Class InterCompositeReferenceFactory<T>
java.lang.Object
org.apache.tuscany.core.injection.InterCompositeReferenceFactory<T>
- All Implemented Interfaces:
- ObjectFactory<T>
public class InterCompositeReferenceFactory<T>
- extends 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) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InterCompositeReferenceFactory
public InterCompositeReferenceFactory(String targetName)
- Reference source is an external service, target is in another module
- Parameters:
targetName
- the name of the target service
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
-