Class EventImpl
java.lang.Object
org.apache.tapestry5.internal.services.EventImpl
- All Implemented Interfaces:
Event
- Direct Known Subclasses:
ComponentEventImpl
,RenderPhaseEvent
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEventImpl
(ComponentEventCallback handler, org.slf4j.Logger logger, OperationTracker tracker) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
boolean
Returns true if the event has been aborted (meaning that the return value from some event handler method was accepted, and processing of the event was terminated).void
setMethodDescription
(String methodDescription) Invoke to identify, to the event, what component and method is being acted upon (used for some kinds of exception reporting).boolean
storeResult
(Object result) Stores a result for the event.
-
Field Details
-
tracker
-
-
Constructor Details
-
EventImpl
- Parameters:
handler
- informed of return values from methods, deems when the event is abortedlogger
- used to log method invocationstracker
-
-
-
Method Details
-
isAborted
Description copied from interface:Event
Returns true if the event has been aborted (meaning that the return value from some event handler method was accepted, and processing of the event was terminated). -
setMethodDescription
Description copied from interface:Event
Invoke to identify, to the event, what component and method is being acted upon (used for some kinds of exception reporting).- Specified by:
setMethodDescription
in interfaceEvent
- Parameters:
methodDescription
- describes the location (i.e. file name, method name and line number) of the method
-
storeResult
Description copied from interface:Event
Stores a result for the event. Storing a non-null result value may abort the event (at the discretion of theComponentEventCallback
).- Specified by:
storeResult
in interfaceEvent
- Parameters:
result
- the result obtained from a method invocations- Returns:
- true if the event is now aborted
-
getMethodDescription
-