2.8.1: 2008-09-10

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-05 17:16:27 +0200 (Fri, 05 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.8.1: 2008-09-10