public class EventImpl extends Object implements Event
Modifier and Type | Field and Description |
---|---|
protected OperationTracker |
tracker |
Constructor and Description |
---|
EventImpl(ComponentEventCallback handler,
org.slf4j.Logger logger,
OperationTracker tracker) |
Modifier and Type | Method and Description |
---|---|
protected String |
getMethodDescription() |
boolean |
isAborted()
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.
|
protected final OperationTracker tracker
public EventImpl(ComponentEventCallback handler, org.slf4j.Logger logger, OperationTracker tracker)
handler
- informed of return values from methods, deems when the event is abortedlogger
- used to log method invocationstracker
- public boolean isAborted()
Event
public void setMethodDescription(String methodDescription)
Event
setMethodDescription
in interface Event
methodDescription
- describes the location (i.e. file name, method name and line number) of the methodpublic boolean storeResult(Object result)
Event
ComponentEventCallback
).storeResult
in interface Event
result
- the result obtained from a method invocationsprotected String getMethodDescription()
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.