|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.server.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 InvocationException, InvocationRuntimeException
dispatch()
is invoked.
public void invoke(Interceptor[] newInterceptors) throws java.lang.IllegalArgumentException, InvocationException, InvocationRuntimeException
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.IllegalArgumentException
- if the new chain is null
InvocationException
- considered as a checked exception
InvocationRuntimeException
- considered as a non checked exceptionprotected abstract void dispatch() throws InvocationException, InvocationRuntimeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |