net.sf.basedb.util.extensions.events
Interface EventFilter
- All Known Implementing Classes:
- ActionClassEventFilter, AllEventsFilter, CombiningEventFilter, EventTypeFilter, ExtensionPointEventFilter
public interface EventFilter
A filter for events before they are sent to an
EventHandler
.
- Version:
- 2.8
- Author:
- nicklas
- Last modified
- $Date: 2008-09-11 22:08:14 +0200 (Thu, 11 Sep 2008) $
shouldSend
boolean shouldSend(EventType event,
ExtensionPoint<?> extensionPoint,
Extension<?> extension)
- Determine if the event should be sent to the event handler or not.
- Parameters:
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
- Returns:
- TRUE to send the event to the event handler, or FALSE otherwise