Class InvocableHandlerMethod

java.lang.Object
org.springframework.messaging.handler.HandlerMethod
org.springframework.messaging.handler.invocation.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.
Since:
4.0
Author:
Rossen Stoyanchev, Juergen Hoeller
  • 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.
    • InvocableHandlerMethod

      public InvocableHandlerMethod(Object bean, String methodName, Class<?>... parameterTypes) throws NoSuchMethodException
      Construct a new handler method with the given bean instance, method name and parameters.
      Parameters:
      bean - the object bean
      methodName - the method name
      parameterTypes - the method parameter types
      Throws:
      NoSuchMethodException - when the method cannot be found
  • Method Details