1 /* 2 * This software is released under a licence similar to the Apache Software Licence. 3 * See org.logicalcobwebs.proxool.package.html for details. 4 * The latest version is available at http://proxool.sourceforge.net 5 */ 6 package org.logicalcobwebs.proxool.util; 7 8 /** 9 * A container for event listeners. Implementations should cater to only one type of listeners. 10 * @version $Revision: 1.2 $, $Date: 2003/03/03 11:12:02 $ 11 * @author Christian Nedregaard (christian_nedregaard@email.com) 12 * @author $Author: billhorsman $ (current maintainer) 13 * @since Proxool 0.7 14 */ 15 public interface ListenerContainerIF { 16 /** 17 * Add a listener to this container. 18 * @param listener the listener to add. 19 */ 20 void addListener(Object listener); 21 22 /** 23 * Remove a listener from this container. 24 * @param listener the listener to be removed. 25 * @return wether the listnener was found and removed or not. 26 */ 27 boolean removeListener(Object listener); 28 29 /** 30 * Get wether this container is empty or not. 31 * @return wether this container is empty or not. 32 */ 33 boolean isEmpty() ; 34 } 35 36 /* 37 Revision history: 38 $Log: ListenerContainerIF.java,v $ 39 Revision 1.2 2003/03/03 11:12:02 billhorsman 40 fixed licence 41 42 Revision 1.1 2003/02/07 01:46:31 chr32 43 Initial revition. 44 45 */