类 WebEventPublisher
- java.lang.Object
-
- io.microsphere.spring.context.lifecycle.AbstractSmartLifecycle
-
- io.microsphere.spring.web.event.WebEventPublisher
-
- 所有已实现的接口:
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:- 从以下版本开始:
- 1.0.0
- 作者:
- Mercy
- 另请参阅:
HandlerMethodArgumentsResolvedEvent
-
-
字段概要
字段 修饰符和类型 字段 说明 static intDEFAULT_PHASE-
从类继承的字段 io.microsphere.spring.context.lifecycle.AbstractSmartLifecycle
EARLIEST_PHASE, LATEST_PHASE
-
-
构造器概要
构造器 构造器 说明 WebEventPublisher(org.springframework.context.ApplicationContext context)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidafterExecute(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 aHandlerMethod.voidbeforeExecute(org.springframework.web.method.HandlerMethod handlerMethod, java.lang.Object[] args, org.springframework.web.context.request.NativeWebRequest request)Interception point before the execution of aHandlerMethod.protected voiddoStart()protected voiddoStop()-
从类继承的方法 io.microsphere.spring.context.lifecycle.AbstractSmartLifecycle
getPhase, isAutoStartup, isRunning, isStarted, setPhase, setStarted, start, stop, stop
-
-
-
-
字段详细资料
-
DEFAULT_PHASE
public static final int DEFAULT_PHASE
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
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从接口复制的说明:HandlerMethodInterceptorInterception point before the execution of aHandlerMethod. Called after HandlerMapping determined an appropriate handler object, but before HandlerAdapter invokes the handler.- 指定者:
beforeExecute在接口中HandlerMethodInterceptor- 参数:
handlerMethod-HandlerMethodargs- the resolved arguments ofHandlerMethodrequest-WebRequest- 抛出:
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从接口复制的说明:HandlerMethodInterceptorInterception point after successful execution of aHandlerMethod. Called after HandlerAdapter actually invoked the handler.- 指定者:
afterExecute在接口中HandlerMethodInterceptor- 参数:
handlerMethod-HandlerMethodargs- the resolved arguments ofHandlerMethodreturnValue- the return value ofHandlerMethoderror- the error afterHandlerMethodinvocationrequest-WebRequest- 抛出:
java.lang.Exception- if any error caused
-
doStart
protected void doStart()
- 指定者:
doStart在类中AbstractSmartLifecycle
-
doStop
protected void doStop()
- 指定者:
doStop在类中AbstractSmartLifecycle
-
-