|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.ejb3.common.proxy.spi.ChainedProcessingInvocationHandler
public class ChainedProcessingInvocationHandler
ChainedProcessingInvocationHandler A Chain of Processors which may be invoked in succession. At the end of the chain is an underlying delegate instance to be invoked via reflection.
| Constructor Summary | |
|---|---|
ChainedProcessingInvocationHandler(java.lang.Object delegate,
ChainableProcessor processor)
|
|
ChainedProcessingInvocationHandler(java.lang.Object delegate,
ChainableProcessor[] handlerChain)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
getDelegate()
|
protected ChainableProcessor[] |
getHandlerChain()
|
protected int |
getNextHandlerIndex()
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Provides a base invocation mechanism under which the request is passed along to the delegate instance |
java.lang.Object |
invokeNext(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Invokes the next processor in the chain with the specified arguments. |
void |
reset()
Resets the internal counter for the next processor in the chain |
protected void |
setDelegate(java.lang.Object delegate)
|
protected void |
setHandlerChain(ChainableProcessor[] handlerChain)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChainedProcessingInvocationHandler(java.lang.Object delegate,
ChainableProcessor processor)
public ChainedProcessingInvocationHandler(java.lang.Object delegate,
ChainableProcessor[] handlerChain)
| Method Detail |
|---|
public java.lang.Object invokeNext(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
proxy - method - args -
java.lang.Throwablepublic void reset()
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwablepublic java.lang.Object getDelegate()
protected void setDelegate(java.lang.Object delegate)
protected ChainableProcessor[] getHandlerChain()
protected void setHandlerChain(ChainableProcessor[] handlerChain)
protected int getNextHandlerIndex()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||