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 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 ClassesModifier and TypeInterfaceDescriptionstatic classMessageDecorator.Same<T extends MessageSupport>A default implementation ofMessageDecoratorwhich returns the same message. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the decorated message.
-
Field Details
-
_MessageDecorator_
-
-
Method Details
-
getDecoratedMessage
Returns the decorated message.- Returns:
- the decorated message
-