org.apache.tuscany.sca.binding.ejb.provider
Class EJBBindingInvoker

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

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

EJBTargetInvoker


Constructor Summary
EJBBindingInvoker(EJBBinding ejbBinding, java.lang.Class serviceInterface, Operation operation)
           
 
Method Summary
 boolean allowsPassByReference()
          Indicate if the data can be passed in by reference as they won't be mutated.
 java.lang.Object doInvoke(java.lang.Object payload)
          Invoke a EJB operation
protected  NamingEndpoint getNamingEndpoint()
           
 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
 

Constructor Detail

EJBBindingInvoker

public EJBBindingInvoker(EJBBinding ejbBinding,
                         java.lang.Class serviceInterface,
                         Operation operation)
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

doInvoke

public java.lang.Object doInvoke(java.lang.Object payload)
Invoke a EJB operation

Parameters:
payload -
Returns:

getNamingEndpoint

protected NamingEndpoint getNamingEndpoint()

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