|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageComposer<T>
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(T messagePayload)
Compose an ESB "aware" message from the supplied message payload. |
java.lang.Object |
decompose(Message message,
T originalInputMessagePayload)
Decompose an ESB "aware" message, extracting and returning the message payload. |
void |
setConfiguration(ConfigTree config)
Set the composer's configuration. |
Method Detail |
---|
void setConfiguration(ConfigTree config) throws ConfigurationException
config
- Composer configuration.
ConfigurationException
- Bad configuration.Message compose(T 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, T originalInputMessagePayload) throws MessageDeliverException
message
- ESB aware message instance to be decomposed.originalInputMessagePayload
- The original input message payload used to
compose this (or ther original) message. The original message can sometimes contain
information relevant during the decomposition process. Whether or not this parameter
can be null depends on the MessageComposer implementation.
MessageDeliverException
- Failed to decompose message payload.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |