|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tuscany.sca.core.invocation.InvocationChainImpl
public class InvocationChainImpl
Default implementation of an invocation chain
| Constructor Summary | |
|---|---|
InvocationChainImpl(Operation sourceOperation,
Operation targetOperation,
boolean forReference)
|
|
| Method Summary | |
|---|---|
void |
addInterceptor(Interceptor interceptor)
Adds an interceptor to the chain. |
void |
addInterceptor(int index,
Interceptor interceptor)
|
void |
addInterceptor(java.lang.String phase,
Interceptor interceptor)
Add an interceptor to the given phase |
void |
addInvoker(Invoker invoker)
Adds an invoker to the chain |
boolean |
allowsPassByReference()
Indicate if the data can be passed in by reference as they won't be mutated. |
Invoker |
getHeadInvoker()
Returns the first invoker in the chain. |
Operation |
getSourceOperation()
Returns the source operation for this invocation chain. |
Invoker |
getTailInvoker()
|
Operation |
getTargetOperation()
Returns the target operation for this invocation chain. |
void |
setAllowsPassByReference(boolean allowsPBR)
Force the invocation to allow pass-by-reference |
void |
setSourceOperation(Operation sourceOperation)
|
void |
setTargetOperation(Operation operation)
Updates the target operation for this invocation chain. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InvocationChainImpl(Operation sourceOperation,
Operation targetOperation,
boolean forReference)
| Method Detail |
|---|
public Operation getTargetOperation()
InvocationChain
getTargetOperation in interface InvocationChainpublic void setTargetOperation(Operation operation)
InvocationChain
setTargetOperation in interface InvocationChainoperation - The new target operation for this invocation chainpublic void addInterceptor(Interceptor interceptor)
InvocationChain
addInterceptor in interface InvocationChaininterceptor - The interceptor to addpublic void addInvoker(Invoker invoker)
InvocationChain
addInvoker in interface InvocationChaininvoker - The invoker to addpublic Invoker getHeadInvoker()
InvocationChain
getHeadInvoker in interface InvocationChainpublic Invoker getTailInvoker()
getTailInvoker in interface InvocationChainpublic Operation getSourceOperation()
InvocationChain
getSourceOperation in interface InvocationChainpublic void setSourceOperation(Operation sourceOperation)
sourceOperation - the sourceOperation to set
public void addInterceptor(int index,
Interceptor interceptor)
addInterceptor in interface InvocationChainindex - The position in the interceptor stack to add the interceptorinterceptor - The interceptor to add
public void addInterceptor(java.lang.String phase,
Interceptor interceptor)
InvocationChain
addInterceptor in interface InvocationChainpublic boolean allowsPassByReference()
InvocationChain
allowsPassByReference in interface InvocationChainpublic void setAllowsPassByReference(boolean allowsPBR)
InvocationChain
setAllowsPassByReference in interface InvocationChain
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||