|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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
Boolean values are not passed to the callback. Booleans are used to indicate that the event has been
handled (true, meaning the event is handled and aborted) or that a further search for handlers should continue
(false, meaning the event was not handled, is not aborted, and the search up the component hierarchy for event
handler methods should continue). If a component event method returns true, then
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 All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |