2016/05/28 - Apache Tuscany has been retired.
For more information, please explore the Attic.
org.apache.tuscany.sca.binding.rmi.provider
Class RMIReferenceInvoker
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RMIReferenceInvoker
public RMIReferenceInvoker(RMIHost rmiHost,
java.lang.String host,
java.lang.String port,
java.lang.String svcName,
java.lang.reflect.Method remoteMethod)
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