org.apache.tuscany.sca.binding.sca.impl
Class SCABindingInvoker

java.lang.Object
  extended by org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker
All Implemented Interfaces:
DataExchangeSemantics, Interceptor, Invoker

public class SCABindingInvoker
extends java.lang.Object
implements Interceptor, DataExchangeSemantics


Constructor Summary
SCABindingInvoker(InvocationChain chain)
          Construct a SCABindingInvoker that delegates to the service invocaiton chain
 
Method Summary
 boolean allowsPassByReference()
          Indicate if the data can be passed in by reference as they won't be mutated.
 Invoker getNext()
          Returns the next invoker or null
 Message invoke(Message msg)
          Process a synchronous wire
 void setNext(Invoker next)
          Sets the next invoker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCABindingInvoker

public SCABindingInvoker(InvocationChain chain)
Construct a SCABindingInvoker that delegates to the service invocaiton chain

Parameters:
chain -
Method Detail

getNext

public Invoker getNext()
Description copied from interface: Interceptor
Returns the next invoker or null

Specified by:
getNext in interface Interceptor
Returns:
The next Invoker
See Also:
Interceptor.getNext()

setNext

public void setNext(Invoker next)
Description copied from interface: Interceptor
Sets the next invoker

Specified by:
setNext in interface Interceptor
Parameters:
next - The next invoker
See Also:
Interceptor.setNext(org.apache.tuscany.sca.invocation.Invoker)

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
See Also:
Invoker.invoke(org.apache.tuscany.sca.invocation.Message)

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
See Also:
DataExchangeSemantics.allowsPassByReference()