Package org.xwiki.observation
Class AbstractEventListener
java.lang.Object
org.xwiki.observation.AbstractEventListener
- All Implemented Interfaces:
EventListener
Base class for
EventListeners.- Since:
- 5.4RC1
- Version:
- $Id: 66f62bdfc0a31ed99e113158e3fb1c08ee9bb453 $
-
Field Summary
Fields inherited from interface org.xwiki.observation.EventListener
CACHE_INVALIDATION_DEFAULT_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionAbstractEventListener(String name, Object... values) AbstractEventListener(String name, List<? extends Event> events) AbstractEventListener(String name, Event... events) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xwiki.observation.EventListener
onEvent
-
Constructor Details
-
AbstractEventListener
- Parameters:
name- the listener's name. It's a free form text identifying this listener instance in a unique manner. This name is used for some operations inObservationManager.events- the list of events this listener is configured to receive. This listener will be automatically registered with this list of events against theObservationManager. When an event occurs, for each matching event in this list, theEventListener.onEvent(Event, Object, Object)method will be called.
-
AbstractEventListener
- Parameters:
name- the listener's name. It's a free form text identifying this listener instance in a unique manner. This name is used for some operations inObservationManager.events- the list of events this listener is configured to receive. This listener will be automatically registered with this list of events against theObservationManager. When an event occurs, for each matching event in this list, theEventListener.onEvent(Event, Object, Object)method will be called.
-
AbstractEventListener
- Parameters:
name- the listener's name. It's a free form text identifying this listener instance in a unique manner. This name is used for some operations inObservationManager.values- the list of events this listener is configured to receive (values can be can be Event, Iterable of Event or Event[]). This listener will be automatically registered with this list of events against theObservationManager. When an event occurs, for each matching event in this list, theEventListener.onEvent(Event, Object, Object)method will be called.- Since:
- 11.8RC1
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceEventListener- Returns:
- the listener's name. It's a free form text identifying this listener instance in a unique manner. This
name is used for some operations in
ObservationManager.
-
getEvents
- Specified by:
getEventsin interfaceEventListener- Returns:
- the list of events this listener is configured to receive. This listener will be automatically registered
with this list of events against the
ObservationManager. When an event occurs, for each matching event in this list, theEventListener.onEvent(Event, Object, Object)method will be called.
-