KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > celtix > BusEventFilter


1 package org.objectweb.celtix;
2
3
4 /**
5  * Interface to be implemented by any class acting as a bus event filter.
6  * It allows a registered bus listener to filter the events of interest.
7  */

8 public interface BusEventFilter {
9     /**
10      * Invoked before sending the specified event to the listener.
11      * @param e The bus event to be sent
12      * @return boolean If <code>true</code>, the event is to be sent to the listener,
13      * otherwise <code>false</code>.
14      */

15     boolean isEventEnabled(BusEvent e);
16 }
17
Popular Tags