|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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()
.
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 |
public Channel getChannel(java.lang.String channelName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |