public class MessageHandlerInterceptorDefinition extends Object implements HandlerEnhancerDefinition
HandlerEnhancerDefinition
that marks methods (meta-)annotated with MessageHandlerInterceptor
as interceptors. These methods need to be given special treatment when invoking handlers. Matching
interceptors need to be invoked first, allowing them to proceed the invocation chain.
This definition also recognizes interceptors only acting on the response. These must be meta-annotated with
ResultHandler
.
Constructor and Description |
---|
MessageHandlerInterceptorDefinition() |
Modifier and Type | Method and Description |
---|---|
<T> MessageHandlingMember<T> |
wrapHandler(MessageHandlingMember<T> original)
Enhance the given
original handler. |
@Nonnull public <T> MessageHandlingMember<T> wrapHandler(@Nonnull MessageHandlingMember<T> original)
HandlerEnhancerDefinition
original
handler. Implementations may return the original message handler.wrapHandler
in interface HandlerEnhancerDefinition
T
- The type of object that will perform the actual handling of the messageoriginal
- The original message handlerCopyright © 2010–2023. All rights reserved.