Class HandlerMethod.DelegatingHandlerMethod<M>
java.lang.Object
io.fluxzero.common.handling.HandlerMethod.DelegatingHandlerMethod<M>
- Type Parameters:
M- the message type
- All Implemented Interfaces:
HandlerDescriptor, HandlerMethod<M>
- Enclosing interface:
HandlerMethod<M>
public abstract static class HandlerMethod.DelegatingHandlerMethod<M>
extends Object
implements HandlerMethod<M>
A
HandlerMethod that delegates all behavior to another instance.-
Nested Class Summary
Nested classes/interfaces inherited from interface HandlerMethod
HandlerMethod.DelegatingHandlerMethod<M> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this method can handle the supplied message.booleanIndicates 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).toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface HandlerMethod
invoke, invoke
-
Field Details
-
delegate
-
-
Constructor Details
-
DelegatingHandlerMethod
public DelegatingHandlerMethod()
-
-
Method Details
-
getTargetClass
Description copied from interface:HandlerDescriptorThe target class that contains the handler method.- Specified by:
getTargetClassin interfaceHandlerDescriptor- Returns:
- the declaring class of the handler
-
getMethod
Description copied from interface:HandlerDescriptor- Specified by:
getMethodin interfaceHandlerDescriptor- Returns:
- the executable method
-
getMethodAnnotation
Description copied from interface:HandlerDescriptorRetrieves the configured handler annotation from the handler method, if present.- Specified by:
getMethodAnnotationin interfaceHandlerDescriptor- Type Parameters:
A- the annotation type- Returns:
- the annotation instance, or
nullif not found
-
expectResult
public boolean expectResult()Description copied from interface:HandlerDescriptorIndicates whether the handler method has a return value.- Specified by:
expectResultin interfaceHandlerDescriptor- Returns:
trueif the method returns a value;falseif it isvoid
-
isPassive
public boolean isPassive()Description copied from interface:HandlerDescriptorIndicates whether this handler operates in passive mode (i.e., results will not be published).- Specified by:
isPassivein interfaceHandlerDescriptor- Returns:
trueif passive; otherwisefalse
-
canHandle
Description copied from interface:HandlerMethodReturns whether this method can handle the supplied message.- Specified by:
canHandlein interfaceHandlerMethod<M>- Parameters:
message- the message to check- Returns:
trueif this handler method can handle the message
-
toString
-