Package it.tidalwave.actor
Interface MessageDecorator
-
- All Known Implementing Classes:
MessageDecorator.Same
public interface MessageDecoratorThis role should be injected into a message to decorated it at 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 classMessageDecorator.Same<T extends MessageSupport>A default implementation ofMessageDecoratorwhich 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 MessageSupportgetDecoratedMessage()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
-
-