Class WebEventPublisher

    • Constructor Summary

      Constructors 
      Constructor Description
      WebEventPublisher​(org.springframework.context.ApplicationContext context)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterExecute​(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 beforeExecute​(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.
      protected void doStart()  
      protected void doStop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebEventPublisher

        public WebEventPublisher​(org.springframework.context.ApplicationContext context)
    • Method Detail

      • beforeExecute

        public void beforeExecute​(org.springframework.web.method.HandlerMethod handlerMethod,
                                  java.lang.Object[] args,
                                  org.springframework.web.context.request.NativeWebRequest request)
                           throws java.lang.Exception
        Description copied from interface: HandlerMethodInterceptor
        Interception point before the execution of a HandlerMethod. Called after HandlerMapping determined an appropriate handler object, but before HandlerAdapter invokes the handler.
        Specified by:
        beforeExecute in interface HandlerMethodInterceptor
        Parameters:
        handlerMethod - HandlerMethod
        args - the resolved arguments of HandlerMethod
        request - WebRequest
        Throws:
        java.lang.Exception - if any error caused
      • afterExecute

        public void afterExecute​(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
        Description copied from interface: HandlerMethodInterceptor
        Interception point after successful execution of a HandlerMethod. Called after HandlerAdapter actually invoked the handler.
        Specified by:
        afterExecute in interface HandlerMethodInterceptor
        Parameters:
        handlerMethod - HandlerMethod
        args - the resolved arguments of HandlerMethod
        returnValue - the return value of HandlerMethod
        error - the error after HandlerMethod invocation
        request - WebRequest
        Throws:
        java.lang.Exception - if any error caused