Package com.axemble.vdoc.sdk.interfaces
Interface IMessageController
- All Superinterfaces:
- IController,- Serializable
- All Known Implementing Classes:
- MessageController
This class allows to play with messages on 
 objects.
invalid reference
IMessageSupport- Since:
- 1.0, 25/09/2009
- Author:
- vlygeros
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionvoiddispatchMessages(Collection classExtensions) Dispatches the messages.getRecipient(String recipientName) Gets a recipient by its name.voidregisterAndSendMessage(String recipientName, int eventType, Object body) Registers a recipient, builds and sends a message.registerAndSendMessage(String recipientName, Class recipientClass, int eventType, Object body) Registers a specific recipient by passing its class, builds and sends a message.voidregisterRecipient(String recipientName) Allows to register a recipient by its name.registerRecipient(String recipientName, Class recipientClass) Allows to register a specific recipient by its class.registerRecipientListener(String recipientName, IRecipientListener recipientListener) Allows to register a recipient by its name.voidsendMessage(String recipientName, int eventType, Object body) Builds and sends a message to a specific recipient.voidunregisterRecipient(String recipientName) Allows to unregister a recipient by its name.
- 
Field Details- 
KEYName of the session key.- See Also:
 
 
- 
- 
Method Details- 
registerRecipientAllows to register a recipient by its name.- Parameters:
- recipientName- The system name of the recipient.
 
- 
registerRecipientAllows to register a specific recipient by its class.- Parameters:
- recipientName- The system name of the recipient.
- recipientClass- The class of the recipient.
- Returns:
- An Object.
 
- 
registerRecipientListenerAllows to register a recipient by its name.
- 
unregisterRecipientAllows to unregister a recipient by its name.- Parameters:
- recipientName- The system name of the recipient.
 
- 
getRecipientGets a recipient by its name.- Parameters:
- recipientName- The system name of the recipient.
- Returns:
- An Object.
 
- 
dispatchMessagesDispatches the messages.- Parameters:
- classExtensions-
 
- 
sendMessageBuilds and sends a message to a specific recipient.- Parameters:
- recipientName- The system name of the recipient.
- eventType- The event type of the message.
- body- The body of the message.
 
- 
registerAndSendMessageRegisters a recipient, builds and sends a message.- Parameters:
- recipientName- The system name of the recipient.
- eventType- The event type of the message.
- body- The body of the message.
 
- 
registerAndSendMessageObject registerAndSendMessage(String recipientName, Class recipientClass, int eventType, Object body) Registers a specific recipient by passing its class, builds and sends a message.- Parameters:
- recipientName- The system name of the recipient.
- recipientClass- The recipient class.
- eventType- The event type of the message.
- body- The body of the message.
- Returns:
- An Object.
 
 
-