|
|||||||||
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 InvocationChain
public void setTargetOperation(Operation operation)
InvocationChain
setTargetOperation
in interface InvocationChain
operation
- The new target operation for this invocation chainpublic void addInterceptor(Interceptor interceptor)
InvocationChain
addInterceptor
in interface InvocationChain
interceptor
- The interceptor to addpublic void addInvoker(Invoker invoker)
InvocationChain
addInvoker
in interface InvocationChain
invoker
- The invoker to addpublic Invoker getHeadInvoker()
InvocationChain
getHeadInvoker
in interface InvocationChain
public Invoker getTailInvoker()
getTailInvoker
in interface InvocationChain
public Operation getSourceOperation()
InvocationChain
getSourceOperation
in interface InvocationChain
public void setSourceOperation(Operation sourceOperation)
sourceOperation
- the sourceOperation to setpublic void addInterceptor(int index, Interceptor interceptor)
addInterceptor
in interface InvocationChain
index
- The position in the interceptor stack to add the interceptorinterceptor
- The interceptor to addpublic void addInterceptor(java.lang.String phase, Interceptor interceptor)
InvocationChain
addInterceptor
in interface InvocationChain
public boolean allowsPassByReference()
InvocationChain
allowsPassByReference
in interface InvocationChain
public 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 |