| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.portal.common.invocation.Invocation
A generic invocation object.
| Field Summary | |
| private  int | currentIndexThe current index in the chain. | 
| private  InterceptorStack | currentStackThe current interceptor stack. | 
| static InterceptorStack | EMPTY_STACK. | 
| private  InvocationHandler | handler. | 
| Constructor Summary | |
| Invocation() | |
| Method Summary | |
|  java.lang.Object | getAttribute(Scope attrScope,
             java.lang.Object attrKey) | 
| abstract  InvocationContext | getContext()Return the invocation context or throw IllegalStateException. | 
|  InvocationHandler | getHandler() | 
|  java.lang.Object | invoke(InterceptorStack newStack)Execute the invocation through the chain of interceptors. | 
|  java.lang.Object | invokeNext()Invoke the next interceptor in the chain. | 
|  void | removeAttribute(Scope attrScope,
                java.lang.Object attrKey) | 
|  void | setAttribute(Scope attrScope,
             java.lang.Object attrKey,
             java.lang.Object attrValue) | 
|  void | setHandler(InvocationHandler handler) | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final InterceptorStack EMPTY_STACK
private int currentIndex
private InterceptorStack currentStack
private InvocationHandler handler
| Constructor Detail | 
public Invocation()
| Method Detail | 
public abstract InvocationContext getContext() throws java.lang.IllegalStateException
java.lang.IllegalStateException - if no context is associated with this invocationpublic java.lang.Object getAttribute(Scope attrScope, java.lang.Object attrKey) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionInvocationContext.getAttribute(Scope,Object)public void setAttribute(Scope attrScope, java.lang.Object attrKey, java.lang.Object attrValue) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionInvocationContext.setAttribute(Scope,Object,Object)public void removeAttribute(Scope attrScope, java.lang.Object attrKey) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionInvocationContext.removeAttribute(Scope,Object)public InvocationHandler getHandler()
public void setHandler(InvocationHandler handler)
public java.lang.Object invokeNext()
                            throws java.lang.Exception,
                                   InvocationException
dispatch()
 is invoked.
java.lang.Exception
InvocationExceptionpublic java.lang.Object invoke(InterceptorStack newStack) throws java.lang.Exception, InvocationException
java.lang.Exception
InvocationException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||