Class InvocableHandlerMethod
java.lang.Object
org.springframework.core.annotation.AnnotatedMethod
org.springframework.messaging.handler.HandlerMethod
org.springframework.messaging.handler.invocation.reactive.InvocableHandlerMethod
Extension of 
HandlerMethod that invokes the underlying method with
 argument values resolved from the current HTTP request through a list of
 HandlerMethodArgumentResolver.- Since:
- 5.2
- Author:
- Rossen Stoyanchev
- 
Nested Class SummaryNested classes/interfaces inherited from class org.springframework.core.annotation.AnnotatedMethodAnnotatedMethod.AnnotatedMethodParameter
- 
Field SummaryFields inherited from class org.springframework.messaging.handler.HandlerMethoddefaultLogger, logger
- 
Constructor SummaryConstructorsConstructorDescriptionInvocableHandlerMethod(Object bean, Method method) Create an instance from a bean instance and a method.InvocableHandlerMethod(HandlerMethod handlerMethod) Create an instance from aHandlerMethod.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the configured parameter name discoverer.Return the configured argument resolvers.reactor.core.publisher.Mono<Object>Invoke the method for the given exchange.voidsetArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers) Configure the argument resolvers to use for resolving method argument values against aServerWebExchange.voidsetParameterNameDiscoverer(ParameterNameDiscoverer nameDiscoverer) Set the ParameterNameDiscoverer for resolving parameter names when needed (for example, default request attribute name).voidConfigure a reactive adapter registry.Methods inherited from class org.springframework.messaging.handler.HandlerMethodassertTargetBean, createWithResolvedBean, equals, formatInvokeError, getBean, getBeanType, getContainingClass, getLogger, getResolvedFromHandlerMethod, getShortLogMessage, hashCode, setLoggerMethods inherited from class org.springframework.core.annotation.AnnotatedMethodfindProvidedArgument, formatArgumentError, getBridgedMethod, getMethod, getMethodAnnotation, getMethodParameters, getReturnType, getReturnValueType, hasMethodAnnotation, isVoid, toString
- 
Constructor Details- 
InvocableHandlerMethodCreate an instance from aHandlerMethod.
- 
InvocableHandlerMethodCreate an instance from a bean instance and a method.
 
- 
- 
Method Details- 
setArgumentResolversConfigure the argument resolvers to use for resolving method argument values against aServerWebExchange.
- 
getResolversReturn the configured argument resolvers.
- 
setParameterNameDiscovererSet the ParameterNameDiscoverer for resolving parameter names when needed (for example, default request attribute name).Default is a DefaultParameterNameDiscoverer.
- 
getParameterNameDiscovererReturn the configured parameter name discoverer.
- 
setReactiveAdapterRegistryConfigure a reactive adapter registry. This is needed for async return values.By default this is a ReactiveAdapterRegistrywith default settings.
- 
invokeInvoke the method for the given exchange.- Parameters:
- message- the current message
- providedArgs- optional list of argument values to match by type
- Returns:
- a Mono with the result from the invocation
 
 
-