| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Every object that would like to receive messages sent to a channel has to implement this interface and register at the channel.
 If a message has been marked as being vetoable first all listeners'
 checkVetoableMessage methods are called. Only if no listener throws
 a MessageVetoException, the message bus calls receiveMessage(net.sf.genuine.organizer.Message)
 afterwards. That means, when checkVetoableMessage(net.sf.genuine.organizer.Message) is called,
 the listener must not perform any internal actions, and when 
 receiveMessage(net.sf.genuine.organizer.Message) is called, the listener must accept the message.
MessageBus, 
Channel, 
MessageVetoException| Method Summary | |
|  void | checkVetoableMessage(Message message)Called to let the listener check whether is would accept the given message. | 
|  void | receiveMessage(Message message)Callback method that is executed when a message has been sent to the listener. | 
| Method Detail | 
public void checkVetoableMessage(Message message)
                          throws MessageVetoException
MessageVetoExceptionpublic void receiveMessage(Message message)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||