|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.services.ComponentResultProcessorWrapper
public class ComponentResultProcessorWrapper
A wrapper around ComponentEventResultProcessor
that encapsulates capturing the exception.
Constructor Summary | |
---|---|
ComponentResultProcessorWrapper(ComponentEventResultProcessor processor)
|
Method Summary | |
---|---|
boolean |
handleResult(Object result)
Invoked to handle a non-null event handler method result. |
boolean |
isAborted()
Returns true if ComponentEventCallback.handleResult(Object) was invoked, false
otherwise. |
void |
rethrow()
If processing a return value threw an IOException, invoking this method will rethrow it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentResultProcessorWrapper(ComponentEventResultProcessor processor)
Method Detail |
---|
public boolean handleResult(Object result)
ComponentEventCallback
Event.isAborted()
will return true.
handleResult
in interface ComponentEventCallback
result
- the result value returned from the event handler method
public boolean isAborted()
ComponentEventCallback.handleResult(Object)
was invoked, false
otherwise.
isAborted
in interface TrackableComponentEventCallback
public void rethrow() throws IOException
TrackableComponentEventCallback
rethrow
in interface TrackableComponentEventCallback
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |