@Retention(value=RUNTIME) @Target(value=ANNOTATION_TYPE) @HasHandlerAttributes public @interface ResultHandler
MessageHandlerInterceptor
annotated methods as interceptors that should
only act on the result of a handler invocation. This gives these handlers the opportunity to act on the result only,
without intercepting the call on the way to the handler.
The resultType()
can be used to limit the types of responses the handler should be invoked for.
This annotation is exclusively meant as a Meta-Annotation and cannot not be placed directly on a method.
ExceptionHandler
Modifier and Type | Optional Element and Description |
---|---|
Class<?> |
resultType
The type of result object that the annotated handler should be invoked for.
|
public abstract Class<?> resultType
Copyright © 2010–2024. All rights reserved.