public class AlwaysMatchingEventFilter extends Object implements EventFilter, Serializable
EventFilter that always matches another event filter.| Modifier and Type | Field and Description |
|---|---|
static AlwaysMatchingEventFilter |
INSTANCE
Unique instance of
AlwaysMatchingEventFilter. |
| Constructor and Description |
|---|
AlwaysMatchingEventFilter()
Deprecated.
since 6.0M1, use
INSTANCE instead |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getFilter()
Provides access to the filter's criterion.
|
int |
hashCode() |
boolean |
matches(EventFilter eventFilter)
Compares two event filters to see if they match, meaning that the "contexts" of two events are
compatible.
|
public static final AlwaysMatchingEventFilter INSTANCE
AlwaysMatchingEventFilter.@Deprecated public AlwaysMatchingEventFilter()
INSTANCE insteadpublic String getFilter()
EventFiltergetFilter in interface EventFilterEventFilter.matches(EventFilter) method to verify if a passed event filter matches
it.EventFilter.matches(EventFilter)public boolean matches(EventFilter eventFilter)
EventFilterFixedNameEventFilter matches another filter only if they both have the same
name set as the filter, while an AlwaysMatchingEventFilter matches any other event filter. A listener
that registered to receive notifications like referenceEvent and with
referenceEventFilter, will be notified of any occuring event for which
referenceEvent.matches(occuringEvent) will return true and
referenceEvent.getEventFilter().matches(occurringEvent.getEventFilter()).matches in interface EventFiltereventFilter - the event filter to compare to the filter valuetrue if both event filters match. The matching algorithm is left to the filter event
implementation. For example the Regex event filter will match another filter if
that other filter matches the regex.Copyright © 2004–2014 XWiki. All rights reserved.