01: package org.objectweb.celtix.buslifecycle;
02:
03: /**
04: * The manager interface for registering <code>BusLifeCycleListener</code>s.
05: *
06: * A class that implements the BusLifeCycleListener interface can be
07: * registered or unregistered to receive notification of <code>Bus</code>
08: * lifecycle events.
09: */
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: }
|