Module io.fluxzero.common
Package io.fluxzero.common.handling
Class HandlerInspector.MethodHandlerMatcher.MethodHandlerInvoker
java.lang.Object
io.fluxzero.common.handling.HandlerInspector.MethodHandlerMatcher.MethodHandlerInvoker
- All Implemented Interfaces:
HandlerInvoker
- Enclosing class:
HandlerInspector.MethodHandlerMatcher<M>
protected abstract class HandlerInspector.MethodHandlerMatcher.MethodHandlerInvoker
extends Object
implements HandlerInvoker
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.fluxzero.common.handling.HandlerInvoker
HandlerInvoker.DelegatingHandlerInvoker, HandlerInvoker.SimpleInvoker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether the handler method has a return value.<A extends Annotation>
ARetrieves a specific 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.fluxzero.common.handling.HandlerInvoker
andFinally, invoke, invoke
-
Constructor Details
-
MethodHandlerInvoker
protected MethodHandlerInvoker()
-
-
Method Details
-
getTargetClass
Description copied from interface:HandlerInvokerThe target class that contains the handler method.- Specified by:
getTargetClassin interfaceHandlerInvoker- Returns:
- the declaring class of the handler
-
getMethod
Description copied from interface:HandlerInvoker- Specified by:
getMethodin interfaceHandlerInvoker- Returns:
- the executable method
-
getMethodAnnotation
Description copied from interface:HandlerInvokerRetrieves a specific annotation from the handler method, if present.- Specified by:
getMethodAnnotationin interfaceHandlerInvoker- Type Parameters:
A- the annotation type- Returns:
- the annotation instance, or
nullif not found
-
expectResult
public boolean expectResult()Description copied from interface:HandlerInvokerIndicates whether the handler method has a return value.This is based on the method's signature: if it returns
void, this returnsfalse; otherwise, it returnstrue.- Specified by:
expectResultin interfaceHandlerInvoker- Returns:
trueif the method returns a value;falseif it isvoid
-
isPassive
public boolean isPassive()Description copied from interface:HandlerInvokerIndicates whether this handler operates in passive mode (i.e., results will not be published).- Specified by:
isPassivein interfaceHandlerInvoker- Returns:
trueif passive; otherwisefalse
-
toString
-