net.sf.genuine.organizer
Interface MessageBus

All Known Subinterfaces:
InternalMessageBus
All Known Implementing Classes:
DefaultMessageBus

public interface MessageBus

The message bus is Genuine's main means for communication between modules. By passing messages between modules instead of directly calling methods, modules may easily added and removed without breaking other functionality.

The message bus provides channels to which message listeners may register. These channels are similar to JMS messages channels in that if a sender sends a message to a channel, all listeners that have registered for the channel are notified.

Channels must be declared to be used. They are declared by adding a <<messagebus&>gt; element to the application's configuration file. See the example application's configuration.

The message bus instance can be accessed using the module manager's method ModuleManager.getMessageBus().

Author:
Tim Wellhausen

Method Summary
 Channel getChannel(java.lang.String channelName)
          Returns an existing channel with the given name if such a channel exists, null otherwise.
 

Method Detail

getChannel

public Channel getChannel(java.lang.String channelName)
Returns an existing channel with the given name if such a channel exists, null otherwise.