Interface HandlerDescriptor
- All Known Subinterfaces:
HandlerInvoker, HandlerMethod<M>
- All Known Implementing Classes:
DocumentHandlerDecorator.DocumentHandler.DocumentHandlerInvoker, HandlerInspector.MethodHandlerMatcher.MethodHandlerInvoker, HandlerInvoker.DelegatingHandlerInvoker, HandlerInvoker.SimpleInvoker, HandlerMethod.DelegatingHandlerMethod, StatefulHandler.StatefulEntryInvoker, StatefulHandler.StatefulHandlerInvoker, StatefulHandler.StatefulMemberInvoker
public interface HandlerDescriptor
Describes the handler method that is involved in a handling operation.
A descriptor carries stable metadata only. It does not imply that the handler is already bound to a specific message, nor that it can be invoked through this interface.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether the handler method has a return value.<A extends Annotation>
ARetrieves the configured handler annotation from the handler method, if present.Class<?> The target class that contains the handler method.booleanIndicates whether this handler operates in passive mode (i.e., results will not be published).
-
Method Details
-
getTargetClass
Class<?> getTargetClass()The target class that contains the handler method.- Returns:
- the declaring class of the handler
-
getMethod
Executable getMethod()- Returns:
- the executable method
-
getMethodAnnotation
Retrieves the configured handler annotation from the handler method, if present.- Type Parameters:
A- the annotation type- Returns:
- the annotation instance, or
nullif not found
-
expectResult
boolean expectResult()Indicates whether the handler method has a return value.- Returns:
trueif the method returns a value;falseif it isvoid
-
isPassive
boolean isPassive()Indicates whether this handler operates in passive mode (i.e., results will not be published).- Returns:
trueif passive; otherwisefalse
-