org.apache.tuscany.sca.binding.rmi.provider
Class RMIReferenceInvoker

java.lang.Object
  extended by org.apache.tuscany.sca.binding.rmi.provider.RMIReferenceInvoker
All Implemented Interfaces:
DataExchangeSemantics, Invoker

public class RMIReferenceInvoker
extends java.lang.Object
implements Invoker, DataExchangeSemantics

Invoker for RMI References.


Constructor Summary
RMIReferenceInvoker(RMIHost rmiHost, java.lang.String host, java.lang.String port, java.lang.String svcName, java.lang.reflect.Method remoteMethod)
           
 
Method Summary
 boolean allowsPassByReference()
          Indicate if the data can be passed in by reference as they won't be mutated.
 Message invoke(Message msg)
          Process a synchronous wire
 java.lang.Object invokeTarget(java.lang.Object payload)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMIReferenceInvoker

public RMIReferenceInvoker(RMIHost rmiHost,
                           java.lang.String host,
                           java.lang.String port,
                           java.lang.String svcName,
                           java.lang.reflect.Method remoteMethod)
Method Detail

invoke

public Message invoke(Message msg)
Description copied from interface: Invoker
Process a synchronous wire

Specified by:
invoke in interface Invoker
Parameters:
msg - The request Message for the wire
Returns:
The response Message from the wire

invokeTarget

public java.lang.Object invokeTarget(java.lang.Object payload)
                              throws java.lang.reflect.InvocationTargetException,
                                     java.lang.SecurityException,
                                     java.lang.NoSuchMethodException,
                                     java.lang.IllegalArgumentException,
                                     java.lang.IllegalAccessException
Throws:
java.lang.reflect.InvocationTargetException
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.IllegalArgumentException
java.lang.IllegalAccessException

allowsPassByReference

public boolean allowsPassByReference()
Description copied from interface: DataExchangeSemantics
Indicate if the data can be passed in by reference as they won't be mutated.

Specified by:
allowsPassByReference in interface DataExchangeSemantics
Returns:
true if pass-by-reference is allowed