|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.milyn.event.BasicExecutionEventListener
public class BasicExecutionEventListener
Basic ExecutionEventListener.
filter event types.
This listener should be used with great care. It could quite easily consume
large amounts of memory if not used properly. If access to this information
is required in a production environment, consider writing and using a more
specialized implementation of the ExecutionEventListener interface
i.e. an implementation that captures the information in a more memory-friendly way.
| Constructor Summary | |
|---|---|
BasicExecutionEventListener()
|
|
| Method Summary | |
|---|---|
List<ExecutionEvent> |
getEvents()
Get the ExecutionEvent list. |
protected boolean |
ignoreEvent(ExecutionEvent event)
|
void |
onEvent(ExecutionEvent event)
Process the ExecutionEvent. |
void |
setFilterEvents(Class<? extends ExecutionEvent>... filterEvents)
Set a list of event types on which to filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicExecutionEventListener()
| Method Detail |
|---|
public void setFilterEvents(Class<? extends ExecutionEvent>... filterEvents)
event types on which to filter.
The listener will only capture event types
provided in this list. If not set, all events will be captured.
filterEvents - Filter events.public void onEvent(ExecutionEvent event)
ExecutionEvent.
onEvent in interface ExecutionEventListenerevent - The ExecutionEvent.protected boolean ignoreEvent(ExecutionEvent event)
public List<ExecutionEvent> getEvents()
ExecutionEvent list.
ExecutionEvent list.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||