org.apache.tuscany.sca.core.invocation
Class CallableReferenceObjectFactory

java.lang.Object
  extended by org.apache.tuscany.sca.core.invocation.CallableReferenceObjectFactory
All Implemented Interfaces:
ObjectFactory<org.osoa.sca.CallableReference<?>>

public class CallableReferenceObjectFactory
extends java.lang.Object
implements ObjectFactory<org.osoa.sca.CallableReference<?>>

Uses a wire to return a CallableReference


Constructor Summary
CallableReferenceObjectFactory(java.lang.Class<?> businessInterface, RuntimeComponent component, RuntimeComponentReference reference, Binding binding)
          Constructor.
 
Method Summary
 org.osoa.sca.CallableReference<?> 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

CallableReferenceObjectFactory

public CallableReferenceObjectFactory(java.lang.Class<?> businessInterface,
                                      RuntimeComponent component,
                                      RuntimeComponentReference reference,
                                      Binding binding)
Constructor. To support the @Reference protected CallableReference ref;

Parameters:
businessInterface - the interface to inject
component - the component defining the reference to be injected
reference - the reference to be injected
binding - the binding for the reference
Method Detail

getInstance

public org.osoa.sca.CallableReference<?> getInstance()
                                              throws ObjectCreationException
Description copied from interface: ObjectFactory
Return a instance of the type that this factory creates.

Specified by:
getInstance in interface ObjectFactory<org.osoa.sca.CallableReference<?>>
Returns:
a instance from this factory
Throws:
ObjectCreationException