org.apache.tuscany.sca.implementation.java.invocation
Class JavaImplementationInvoker

java.lang.Object
  extended by org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker
All Implemented Interfaces:
DataExchangeSemantics, Invoker

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

Responsible for synchronously dispatching an invocation to a Java component implementation instance


Field Summary
protected  boolean allowsPBR
           
protected  java.lang.reflect.Method method
           
protected  Operation operation
           
protected  ScopeContainer scopeContainer
           
 
Constructor Summary
JavaImplementationInvoker(Operation operation, java.lang.reflect.Method method, RuntimeComponent component)
           
JavaImplementationInvoker(Operation operation, RuntimeComponent component)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

operation

protected Operation operation

method

protected java.lang.reflect.Method method

allowsPBR

protected boolean allowsPBR

scopeContainer

protected final ScopeContainer scopeContainer
Constructor Detail

JavaImplementationInvoker

public JavaImplementationInvoker(Operation operation,
                                 java.lang.reflect.Method method,
                                 RuntimeComponent component)

JavaImplementationInvoker

public JavaImplementationInvoker(Operation operation,
                                 RuntimeComponent component)
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

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