Package org.xwiki.observation.event
Class AllEvent
java.lang.Object
org.xwiki.observation.event.AllEvent
- All Implemented Interfaces:
Event
Special event matcher used by a listener which need to listened to all possible events.
- Version:
- $Id: 70aa5bda4d20070f73ec88c97493510b353ebbf1 $
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares two events to see if they match, meaning that a listener that registered to receive notifications likereferenceEventwill be notified of any occuring event for whichreferenceEvent.matches(occuringEvent)will returntrue.
-
Field Details
-
ALLEVENT
Unique instance of the event matcher.
-
-
Method Details
-
matches
Description copied from interface:EventCompares two events to see if they match, meaning that a listener that registered to receive notifications likereferenceEventwill be notified of any occuring event for whichreferenceEvent.matches(occuringEvent)will returntrue. The matching algorithm depends on the event implementation. For example for Document events two events match if they implement the same event class and if theirEventFiltermatch. Note that the implementation is left open in order to cater for all the possible ways this Observation component can be used.
-