1 package org.objectweb.celtix.buslifecycle; 2 3 /** 4 * The manager interface for registering <code>BusLifeCycleListener</code>s. 5 * 6 * A class that implements the BusLifeCycleListener interface can be 7 * registered or unregistered to receive notification of <code>Bus</code> 8 * lifecycle events. 9 */ 10 public interface BusLifeCycleManager { 11 12 /** 13 * Register a listener to receive <code>Bus</code> lifecycle notification. 14 * 15 * @param listener The <code>BusLifeCycleListener</code> that will 16 * receive the events. 17 */ 18 void registerLifeCycleListener(BusLifeCycleListener listener); 19 20 /** 21 * Unregister a listener so that it will no longer receive <code>Bus</code> 22 * lifecycle events. 23 * 24 * @param listener The <code>BusLifeCycleListener</code> to unregister. 25 */ 26 void unregisterLifeCycleListener(BusLifeCycleListener listener); 27 } 28