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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispatchMessages
(Collection classExtensions) Dispatches the messages.getRecipient
(String recipientName) Gets a recipient by its name.void
registerAndSendMessage
(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.void
registerRecipient
(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.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.
-
Field Details
-
KEY
Name of the session key.- See Also:
-
-
Method Details
-
registerRecipient
Allows to register a recipient by its name.- Parameters:
recipientName
- The system name of the recipient.
-
registerRecipient
Allows 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
.
-
registerRecipientListener
Allows to register a recipient by its name. -
unregisterRecipient
Allows to unregister a recipient by its name.- Parameters:
recipientName
- The system name of the recipient.
-
getRecipient
Gets a recipient by its name.- Parameters:
recipientName
- The system name of the recipient.- Returns:
- An
Object
.
-
dispatchMessages
Dispatches the messages.- Parameters:
classExtensions
-
-
sendMessage
Builds 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.
-
registerAndSendMessage
Registers 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.
-
registerAndSendMessage
Object 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
.
-