Class AlwaysMatchingEventFilter
java.lang.Object
org.xwiki.observation.event.filter.AlwaysMatchingEventFilter
- All Implemented Interfaces:
Serializable,EventFilter
An
EventFilter that always matches another event filter.- Version:
- $Id: 23993703e89d0167dc90e6e564cc37956b99f9be $
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AlwaysMatchingEventFilterUnique instance ofAlwaysMatchingEventFilter. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
Unique instance ofAlwaysMatchingEventFilter.- Since:
- 6.0M1
-
-
Constructor Details
-
AlwaysMatchingEventFilter
Deprecated.since 6.0M1, useINSTANCEinstead
-
-
Method Details
-
getFilter
Description copied from interface:EventFilterProvides access to the filter's criterion.- Specified by:
getFilterin interfaceEventFilter- Returns:
- the filter used in the
EventFilter.matches(EventFilter)method to verify if a passed event filter matches it. - See Also:
-
matches
Description copied from interface:EventFilterCompares two event filters to see if they match, meaning that the "contexts" of two events are compatible. For example, aFixedNameEventFiltermatches another filter only if they both have the same name set as the filter, while anAlwaysMatchingEventFiltermatches any other event filter. A listener that registered to receive notifications likereferenceEventand withreferenceEventFilter, will be notified of any occuring event for whichreferenceEvent.matches(occuringEvent)will returntrueandreferenceEvent.getEventFilter().matches(occurringEvent.getEventFilter()).- Specified by:
matchesin interfaceEventFilter- Parameters:
eventFilter- the event filter to compare to the filter value- Returns:
trueif both event filters match. The matching algorithm is left to the filter event implementation. For example theRegex event filterwill match another filter if that other filter matches the regex.
-
equals
-
hashCode
public int hashCode()
-
INSTANCEinstead