org.apache.tuscany.sca.invocation
Interface InvocationChain


public interface InvocationChain

A wire consists of 1..n invocation chains associated with the operations of its source service contract.

Invocation chains may contain Interceptors that process invocations.

A Message is used to pass data associated with an invocation through the chain.

Version:
$Rev: 539359 $ $Date: 2007-05-18 11:06:21 +0100 (Fri, 18 May 2007) $

Method Summary
 void addInterceptor(Interceptor interceptor)
          Adds an interceptor to the chain
 void addInterceptor(int index, Interceptor interceptor)
          Adds an interceptor at the given position in the interceptor stack
 void addInvoker(Invoker invoker)
          Adds an invoker to the chain
 Invoker getHeadInvoker()
          Returns the first invoker in the chain.
 Operation getSourceOperation()
          Returns the source operation for this invocation chain.
 Invoker getTailInvoker()
          Returns the last invoker in the chain.
 Operation getTargetOperation()
          Returns the target operation for this invocation chain.
 

Method Detail

getTargetOperation

Operation getTargetOperation()
Returns the target operation for this invocation chain.

Returns:
The target operation for this invocation chain

getSourceOperation

Operation getSourceOperation()
Returns the source operation for this invocation chain.

Returns:
The source operation for this invocation chain

addInterceptor

void addInterceptor(Interceptor interceptor)
Adds an interceptor to the chain

Parameters:
interceptor - The interceptor to add

addInvoker

void addInvoker(Invoker invoker)
Adds an invoker to the chain

Parameters:
invoker - The invoker to add

getHeadInvoker

Invoker getHeadInvoker()
Returns the first invoker in the chain.

Returns:
The first invoker in the chain

getTailInvoker

Invoker getTailInvoker()
Returns the last invoker in the chain.

Returns:
The last invoker in the chain

addInterceptor

void addInterceptor(int index,
                    Interceptor interceptor)
Adds an interceptor at the given position in the interceptor stack

Parameters:
index - The position in the interceptor stack to add the interceptor
interceptor - The interceptor to add