Interface HandlerEnhancerDefinition
- All Known Implementing Classes:
HandlerTimeoutHandlerEnhancerDefinition,MessageHandlerInterceptorDefinition,MethodCommandHandlerDefinition,MethodEventHandlerDefinition,MethodQueryHandlerDefinition,MethodSequencingPolicyEventHandlerDefinition,MultiHandlerEnhancerDefinition,ReplayAwareMessageHandlerWrapper,SecuredMessageHandlerDefinition,TracingHandlerEnhancerDefinition
public interface HandlerEnhancerDefinition
Interface describing objects that are capable of enhancing a
MessageHandler, giving it additional
functionality.- Since:
- 3.0.0
- Author:
- Allard Buijze
-
Method Summary
Modifier and TypeMethodDescription<T> MessageHandlingMember<T> wrapHandler(MessageHandlingMember<T> original) Enhance the givenoriginalhandler.
-
Method Details
-
wrapHandler
Enhance the givenoriginalhandler. Implementations may return the original message handler.- Type Parameters:
T- The type of object that will perform the actual handling of the message- Parameters:
original- The original message handler- Returns:
- The enhanced message handler
-