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

java.lang.Object
  extended by org.apache.tuscany.sca.core.invocation.JDKInvocationHandler
      extended by org.apache.tuscany.sca.core.invocation.JDKCallbackInvocationHandler
All Implemented Interfaces:
java.io.Serializable, java.lang.reflect.InvocationHandler

public class JDKCallbackInvocationHandler
extends JDKInvocationHandler

Responsible for dispatching to a callback through a wire.

TODO cache target invoker

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.tuscany.sca.core.invocation.JDKInvocationHandler
businessInterface, callableReference, chains, conversation, conversational, fixedWire, messageFactory, source, target, wire
 
Constructor Summary
JDKCallbackInvocationHandler(MessageFactory messageFactory, CallbackReferenceImpl ref)
           
 
Method Summary
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 
Methods inherited from class org.apache.tuscany.sca.core.invocation.JDKInvocationHandler
getCallableReference, getCallbackID, getCallbackObject, getConversationID, getInvocationChain, init, initConversational, invoke, invokeObjectMethod, setCallableReference, setEndpoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDKCallbackInvocationHandler

public JDKCallbackInvocationHandler(MessageFactory messageFactory,
                                    CallbackReferenceImpl ref)
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Overrides:
invoke in class JDKInvocationHandler
Throws:
java.lang.Throwable