Class WebEventPublisher

java.lang.Object
io.microsphere.spring.context.lifecycle.AbstractSmartLifecycle
io.microsphere.spring.web.event.WebEventPublisher
All Implemented Interfaces:
HandlerMethodInterceptor, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

public class WebEventPublisher extends AbstractSmartLifecycle implements HandlerMethodInterceptor
The class publishes the Spring Web extension events:
Since:
1.0.0
Author:
Mercy
See Also:
  • Field Details

  • Constructor Details

    • WebEventPublisher

      public WebEventPublisher(org.springframework.context.ApplicationContext context)
  • Method Details

    • beforeExecute

      public void beforeExecute(org.springframework.web.method.HandlerMethod handlerMethod, Object[] args, org.springframework.web.context.request.NativeWebRequest request) throws 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:
      Exception - if any error caused
    • doStart

      protected void doStart()
      Specified by:
      doStart in class AbstractSmartLifecycle
    • doStop

      protected void doStop()
      Specified by:
      doStop in class AbstractSmartLifecycle