Package it.tidalwave.actor
Interface MessageDecorator
-
- All Known Implementing Classes:
MessageDecorator.Same
public interface MessageDecorator
This role should be injected into a message to decorated it a the moment of sending. This technique is experimental and represents the function of a Decorator Pattern in a message-oriented design.- Author:
- Fabrizio Giudici
- Stereotype:
- Role
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
MessageDecorator.Same<T extends MessageSupport>
A default implementation ofMessageDecorator
which returns the same message.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Class<MessageDecorator>
_MessageDecorator_
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MessageSupport
getDecoratedMessage()
Returns the decorated message.
-
-
-
Field Detail
-
_MessageDecorator_
static final java.lang.Class<MessageDecorator> _MessageDecorator_
-
-
Method Detail
-
getDecoratedMessage
@Nonnull MessageSupport getDecoratedMessage()
Returns the decorated message.- Returns:
- the decorated message
-
-