|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MessageComposer
Message composer.
A "Composer" is basically a "Builder" ala the GoF patterns. Implementations should be threadsafe (stateless) and must contain a public default constructor.
| Nested Class Summary | |
|---|---|
static class |
MessageComposer.Factory
Uitility factory class for reflective MessageComposer construction. |
| Method Summary | |
|---|---|
Message |
compose(java.lang.Object messagePayload)
Compose an ESB "aware" message from the supplied message payload. |
java.lang.Object |
decompose(Message message)
Decompose an ESB "aware" message, extracting and returning the message payload. |
void |
setConfiguration(ConfigTree config)
Set the conposer's configuration. |
| Method Detail |
|---|
void setConfiguration(ConfigTree config)
throws ConfigurationException
config - Composer configuration.
ConfigurationException - Bad configuration.
Message compose(java.lang.Object messagePayload)
throws MessageDeliverException
messagePayload - Message payload to be packaged, or a channel specific
container class for the message payload (e.g. a JMS message).
MessageDeliverException - Failed to compose message payload for delivery.
java.lang.Object decompose(Message message)
throws MessageDeliverException
message - ESB aware message instance to be decomposed.
MessageDeliverException - Failed to decompose message payload.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||