public class EventTypeFilter extends java.lang.Object implements EventFilter
Constructor and Description |
---|
EventTypeFilter(EventType type)
Create a new event type filter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
shouldSend(EventType event,
ExtensionPoint<?> extensionPoint,
Extension<?> extension)
Determine if the event should be sent to the event handler or not.
|
private final EventType type
public EventTypeFilter(EventType type)
type
- The event typepublic boolean shouldSend(EventType event, ExtensionPoint<?> extensionPoint, Extension<?> extension)
EventFilter
shouldSend
in interface EventFilter
event
- The event that happendextensionPoint
- The extension point that the extension
extends, or that the event happened toextension
- The extension the event happend to, or null if the
event happended to the extension point