|
||||||||||
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(Object delegate,
ChainableProcessor processor)
|
|
ChainedProcessingInvocationHandler(Object delegate,
ChainableProcessor[] handlerChain)
|
Method Summary | |
---|---|
Object |
getDelegate()
|
protected ChainableProcessor[] |
getHandlerChain()
|
protected int |
getNextHandlerIndex()
|
Object |
invoke(Object proxy,
Method method,
Object[] args)
Provides a base invocation mechanism under which the request is passed along to the delegate instance |
Object |
invokeNext(Object proxy,
Method method,
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(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(Object delegate, ChainableProcessor processor)
public ChainedProcessingInvocationHandler(Object delegate, ChainableProcessor[] handlerChain)
Method Detail |
---|
public Object invokeNext(Object proxy, Method method, Object[] args) throws Throwable
proxy
- method
- args
-
Throwable
public void reset()
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
public Object getDelegate()
protected void setDelegate(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 |