Class SyncInvocableHandlerMethod
java.lang.Object
org.springframework.web.method.HandlerMethod
org.springframework.web.reactive.result.method.SyncInvocableHandlerMethod
Extension of 
HandlerMethod that invokes the underlying method via
 InvocableHandlerMethod but uses sync argument resolvers only and
 thus can return directly a HandlerResult with no async wrappers.- Since:
- 5.0
- Author:
- Rossen Stoyanchev
- 
Nested Class SummaryNested classes/interfaces inherited from class org.springframework.web.method.HandlerMethodHandlerMethod.HandlerMethodParameter
- 
Field SummaryFields inherited from class org.springframework.web.method.HandlerMethodlogger
- 
Constructor SummaryConstructorsConstructorDescriptionSyncInvocableHandlerMethod(Object bean, Method method) SyncInvocableHandlerMethod(HandlerMethod handlerMethod) 
- 
Method SummaryModifier and TypeMethodDescriptionReturn the configured parameter name discoverer.Return the configured argument resolvers.invokeForHandlerResult(ServerWebExchange exchange, BindingContext bindingContext, Object... providedArgs) Invoke the method for the given exchange.voidConfigure the argument resolvers to use to use for resolving method argument values against aServerWebExchange.voidsetParameterNameDiscoverer(ParameterNameDiscoverer nameDiscoverer) Set the ParameterNameDiscoverer for resolving parameter names when needed (e.g.Methods inherited from class org.springframework.web.method.HandlerMethodassertTargetBean, createWithResolvedBean, equals, findProvidedArgument, formatArgumentError, formatInvokeError, getBean, getBeanType, getBridgedMethod, getMethod, getMethodAnnotation, getMethodParameters, getResolvedFromHandlerMethod, getResponseStatus, getResponseStatusReason, getReturnType, getReturnValueType, getShortLogMessage, hashCode, hasMethodAnnotation, isVoid, toString
- 
Constructor Details- 
SyncInvocableHandlerMethod
- 
SyncInvocableHandlerMethod
 
- 
- 
Method Details- 
setArgumentResolversConfigure the argument resolvers to use to use for resolving method argument values against aServerWebExchange.
- 
getResolversReturn the configured argument resolvers.
- 
setParameterNameDiscovererSet the ParameterNameDiscoverer for resolving parameter names when needed (e.g. default request attribute name).Default is a DefaultParameterNameDiscoverer.
- 
getParameterNameDiscovererReturn the configured parameter name discoverer.
- 
invokeForHandlerResult@Nullable public HandlerResult invokeForHandlerResult(ServerWebExchange exchange, BindingContext bindingContext, Object... providedArgs) Invoke the method for the given exchange.- Parameters:
- exchange- the current exchange
- bindingContext- the binding context to use
- providedArgs- optional list of argument values to match by type
- Returns:
- a Mono with a HandlerResult.
- Throws:
- ServerErrorException- if method argument resolution or method invocation fails
 
 
-