|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.common.invocation.Invocation
A generic invocation object.
Constructor Summary | |
Invocation()
|
Method Summary | |
protected abstract void |
dispatch()
Dispatch the call to the target. |
java.lang.Object |
getAttribute(java.lang.String name)
Return an attribute from the invocation. |
void |
invoke(Interceptor[] newInterceptors)
Execute the invocation through the chain of interceptors. |
void |
invokeNext()
Invoke the next interceptor in the chain. |
void |
removeAttribute(java.lang.String name)
Remove an attribute from the invocation. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Set an attribute on the invocation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Invocation()
Method Detail |
public void setAttribute(java.lang.String name, java.lang.Object value) throws java.lang.IllegalArgumentException
name
- the attribute namevalue
- the attribute value
java.lang.IllegalArgumentException
- if the attribute name is nullpublic void removeAttribute(java.lang.String name) throws java.lang.IllegalArgumentException
name
- the attribute name
java.lang.IllegalArgumentException
- if the name is nullpublic java.lang.Object getAttribute(java.lang.String name) throws java.lang.IllegalArgumentException
name
- the attribute name
java.lang.IllegalArgumentException
- if the name is nullpublic void invokeNext() throws java.lang.Exception, InvocationException
dispatch()
is invoked.
java.lang.Exception
InvocationException
public void invoke(Interceptor[] newInterceptors) throws java.lang.Exception, InvocationException
InvocationException
should be raised for checked exception.
InvocationRuntimeException
should be raised for for non checked exception.
RuntimeException
should not be raised and are considered to be programmation errors when they go through
the chain, so any code in the chain should not throw instances of RuntimeException
.
When the end of the chain is reached the dispatch()
method is invoked.
java.lang.Exception
InvocationException
protected abstract void dispatch() 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 |