类 DelegatingHandlerMethodAdvice

    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void afterExecuteMethod​(org.springframework.web.method.HandlerMethod handlerMethod, java.lang.Object[] args, java.lang.Object returnValue, java.lang.Throwable error, org.springframework.web.context.request.NativeWebRequest request)
      Interception point after successful execution of a HandlerMethod.
      void afterResolveArgument​(org.springframework.core.MethodParameter parameter, java.lang.Object resolvedArgument, org.springframework.web.method.HandlerMethod handlerMethod, org.springframework.web.context.request.NativeWebRequest webRequest)
      callback after the MethodParameter being resolved
      void beforeExecuteMethod​(org.springframework.web.method.HandlerMethod handlerMethod, java.lang.Object[] args, org.springframework.web.context.request.NativeWebRequest request)
      Interception point before the execution of a HandlerMethod.
      void beforeResolveArgument​(org.springframework.core.MethodParameter parameter, org.springframework.web.method.HandlerMethod handlerMethod, org.springframework.web.context.request.NativeWebRequest webRequest)
      callback before the MethodParameter being resolved
      protected void onApplicationContextEvent​(org.springframework.context.event.ContextRefreshedEvent event)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • BEAN_NAME

        public static final java.lang.String BEAN_NAME
        另请参阅:
        常量字段值
    • 构造器详细资料

      • DelegatingHandlerMethodAdvice

        public DelegatingHandlerMethodAdvice()
    • 方法详细资料

      • beforeResolveArgument

        public void beforeResolveArgument​(org.springframework.core.MethodParameter parameter,
                                          org.springframework.web.method.HandlerMethod handlerMethod,
                                          org.springframework.web.context.request.NativeWebRequest webRequest)
                                   throws java.lang.Exception
        从接口复制的说明: HandlerMethodAdvice
        callback before the MethodParameter being resolved
        指定者:
        beforeResolveArgument 在接口中 HandlerMethodAdvice
        参数:
        parameter - the method parameter to resolve.
        handlerMethod - the method to handle
        webRequest - the current request
        抛出:
        java.lang.Exception - in case of errors with the preparation of argument values
      • afterResolveArgument

        public void afterResolveArgument​(org.springframework.core.MethodParameter parameter,
                                         java.lang.Object resolvedArgument,
                                         org.springframework.web.method.HandlerMethod handlerMethod,
                                         org.springframework.web.context.request.NativeWebRequest webRequest)
                                  throws java.lang.Exception
        从接口复制的说明: HandlerMethodAdvice
        callback after the MethodParameter being resolved
        指定者:
        afterResolveArgument 在接口中 HandlerMethodAdvice
        参数:
        parameter - the method parameter to resolve.
        resolvedArgument - the resolved argument
        handlerMethod - the method to handle
        webRequest - the current request
        抛出:
        java.lang.Exception - in case of errors with the preparation of argument values
      • beforeExecuteMethod

        public void beforeExecuteMethod​(org.springframework.web.method.HandlerMethod handlerMethod,
                                        java.lang.Object[] args,
                                        org.springframework.web.context.request.NativeWebRequest request)
                                 throws java.lang.Exception
        从接口复制的说明: HandlerMethodAdvice
        Interception point before the execution of a HandlerMethod. Called after HandlerMapping determined an appropriate handler object, but before HandlerAdapter invokes the handler.
        指定者:
        beforeExecuteMethod 在接口中 HandlerMethodAdvice
        参数:
        handlerMethod - HandlerMethod
        args - the resolved arguments of HandlerMethod
        request - WebRequest
        抛出:
        java.lang.Exception - if any error caused
      • afterExecuteMethod

        public void afterExecuteMethod​(org.springframework.web.method.HandlerMethod handlerMethod,
                                       java.lang.Object[] args,
                                       java.lang.Object returnValue,
                                       java.lang.Throwable error,
                                       org.springframework.web.context.request.NativeWebRequest request)
                                throws java.lang.Exception
        从接口复制的说明: HandlerMethodAdvice
        Interception point after successful execution of a HandlerMethod. Called after HandlerAdapter actually invoked the handler.
        指定者:
        afterExecuteMethod 在接口中 HandlerMethodAdvice
        参数:
        handlerMethod - HandlerMethod
        args - the resolved arguments of HandlerMethod
        returnValue - the return value of HandlerMethod
        error - the error after HandlerMethod invocation
        request - WebRequest
        抛出:
        java.lang.Exception - if any error caused