1 package cz.cuni.amis.pogamut.base.communication.worldview.listener; 2 3 import cz.cuni.amis.pogamut.base.communication.worldview.listener.exception.ListenersAlreadyRegisteredException; 4 5 public interface IListenerRegistrator { 6 7 /** 8 * Register all the listeners the registrator know of. 9 * <p><p> 10 * Can be called only if listeners are not registred. 11 * 12 * @throws ListenersAlreadyRegisteredException 13 */ 14 public void addListeners() throws ListenersAlreadyRegisteredException; 15 16 /** 17 * Removes (unregister) all the listeners the registrator has created. 18 */ 19 public void removeListeners(); 20 21 }