public interface IMessageController extends IController
IMessageSupport objects.| Modifier and Type | Field and Description | 
|---|---|
static String | 
KEY
Name of the session key. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
dispatchMessages(Collection classExtensions)
Dispatches the messages. 
 | 
Object | 
getRecipient(String recipientName)
Gets a recipient by its name. 
 | 
Object | 
registerAndSendMessage(String recipientName,
                      Class recipientClass,
                      int eventType,
                      Object body)
Registers a specific recipient by passing its class, builds and sends a message. 
 | 
void | 
registerAndSendMessage(String recipientName,
                      int eventType,
                      Object body)
Registers a recipient, builds and sends a message. 
 | 
void | 
registerRecipient(String recipientName)
Allows to register a recipient by its name. 
 | 
Object | 
registerRecipient(String recipientName,
                 Class recipientClass)
Allows to register a specific recipient by its class. 
 | 
Object | 
registerRecipientListener(String recipientName,
                         IRecipientListener recipientListener)
Allows to register a recipient by its name. 
 | 
void | 
sendMessage(String recipientName,
           int eventType,
           Object body)
Builds and sends a message to a specific recipient. 
 | 
void | 
unregisterRecipient(String recipientName)
Allows to unregister a recipient by its name. 
 | 
static final String KEY
void registerRecipient(String recipientName)
recipientName - The system name of the recipient.Object registerRecipient(String recipientName, Class recipientClass)
recipientName - The system name of the recipient.recipientClass - The class of the recipient.Object.Object registerRecipientListener(String recipientName, IRecipientListener recipientListener)
void unregisterRecipient(String recipientName)
recipientName - The system name of the recipient.Object getRecipient(String recipientName)
recipientName - The system name of the recipient.Object.void dispatchMessages(Collection classExtensions)
classExtensions - void sendMessage(String recipientName, int eventType, Object body)
recipientName - The system name of the recipient.eventType - The event type of the message.body - The body of the message.void registerAndSendMessage(String recipientName, int eventType, Object body)
recipientName - The system name of the recipient.eventType - The event type of the message.body - The body of the message.Object registerAndSendMessage(String recipientName, Class recipientClass, int eventType, Object body)
recipientName - The system name of the recipient.recipientClass - The recipient class.eventType - The event type of the message.body - The body of the message.Object.Copyright © 2019 Visiativ Software. All rights reserved.