T
- the type of the handlerspublic class NoMoreInterceptors<T> extends Object implements MessageHandlerInterceptorMemberChain<T>
MessageHandlerInterceptorMemberChain
with no more interceptors. It can be used a default
interceptor, for example in the AnnotatedHandlerInspector
.Constructor and Description |
---|
NoMoreInterceptors() |
Modifier and Type | Method and Description |
---|---|
Object |
handle(Message<?> message,
T target,
MessageHandlingMember<? super T> handler)
Handle the given
message by passing it through the interceptors and ultimately to the given
handler on the given target instance. |
static <T> MessageHandlerInterceptorMemberChain<T> |
instance()
Creates and returns a new instance
|
public static <T> MessageHandlerInterceptorMemberChain<T> instance()
T
- the type of the handlersNoMoreInterceptors
instancepublic Object handle(@Nonnull Message<?> message, @Nonnull T target, @Nonnull MessageHandlingMember<? super T> handler) throws Exception
MessageHandlerInterceptorMemberChain
message
by passing it through the interceptors and ultimately to the given
handler
on the given target
instance. The result of this invocation is the result as given by the
handler
, possibly modified by any of the interceptors in this chain.handle
in interface MessageHandlerInterceptorMemberChain<T>
message
- The message to pass through the interceptor chaintarget
- The target instance to invoke the interceptors and handlers onhandler
- The actual handler to invoke once all interceptors have received the messageException
- any exception thrown by the handler or any of the interceptorsCopyright © 2010–2024. All rights reserved.