2.17.2: 2011-06-17

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) $

Method Summary
 boolean shouldSend(EventType event, ExtensionPoint<?> extensionPoint, Extension<?> extension)
          Determine if the event should be sent to the event handler or not.
 

Method Detail

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 happend
extensionPoint - The extension point that the extension extends, or that the event happened to
extension - 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

2.17.2: 2011-06-17