Class InvocableHandlerMethod


public class InvocableHandlerMethod extends HandlerMethod
Extension of HandlerMethod that invokes the underlying method with argument values resolved from the current HTTP request through a list of HandlerMethodArgumentResolver.

By default, the method invocation happens on the thread from which the Mono was subscribed to, or in some cases the thread that emitted one of the resolved arguments (for example, when the request body needs to be decoded). To ensure a predictable thread for the underlying method's invocation, a Scheduler can optionally be provided via setInvocationScheduler(Scheduler).

Since:
5.0
Author:
Rossen Stoyanchev, Juergen Hoeller, Sebastien Deleuze
  • Constructor Details

    • InvocableHandlerMethod

      public InvocableHandlerMethod(HandlerMethod handlerMethod)
      Create an instance from a HandlerMethod.
    • InvocableHandlerMethod

      public InvocableHandlerMethod(Object bean, Method method)
      Create an instance from a bean instance and a method.
  • Method Details