类 DelegatingHandlerMethodAdvice
- java.lang.Object
-
- io.microsphere.spring.context.event.OnceApplicationContextEventListener<org.springframework.context.event.ContextRefreshedEvent>
-
- io.microsphere.spring.web.method.support.DelegatingHandlerMethodAdvice
-
- 所有已实现的接口:
HandlerMethodAdvice,java.util.EventListener,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
public class DelegatingHandlerMethodAdvice extends OnceApplicationContextEventListener<org.springframework.context.event.ContextRefreshedEvent> implements HandlerMethodAdvice
HandlerMethodAdviceclass delegates to the beans ofHandlerMethodArgumentInterceptorandHandlerMethodInterceptor.- 从以下版本开始:
- 1.0.0
- 作者:
- Mercy
- 另请参阅:
HandlerMethodArgumentInterceptor,HandlerMethodInterceptor
-
-
字段概要
字段 修饰符和类型 字段 说明 static java.lang.StringBEAN_NAME-
从类继承的字段 io.microsphere.spring.context.event.OnceApplicationContextEventListener
log
-
-
构造器概要
构造器 构造器 说明 DelegatingHandlerMethodAdvice()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidafterExecuteMethod(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.voidafterResolveArgument(org.springframework.core.MethodParameter parameter, java.lang.Object resolvedArgument, org.springframework.web.method.HandlerMethod handlerMethod, org.springframework.web.context.request.NativeWebRequest webRequest)callback after theMethodParameterbeing resolvedvoidbeforeExecuteMethod(org.springframework.web.method.HandlerMethod handlerMethod, java.lang.Object[] args, org.springframework.web.context.request.NativeWebRequest request)Interception point before the execution of aHandlerMethod.voidbeforeResolveArgument(org.springframework.core.MethodParameter parameter, org.springframework.web.method.HandlerMethod handlerMethod, org.springframework.web.context.request.NativeWebRequest webRequest)callback before theMethodParameterbeing resolvedprotected voidonApplicationContextEvent(org.springframework.context.event.ContextRefreshedEvent event)-
从类继承的方法 io.microsphere.spring.context.event.OnceApplicationContextEventListener
getApplicationContext, onApplicationEvent, setApplicationContext
-
-
-
-
字段详细资料
-
BEAN_NAME
public static final java.lang.String BEAN_NAME
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
onApplicationContextEvent
protected void onApplicationContextEvent(org.springframework.context.event.ContextRefreshedEvent event)
- 指定者:
onApplicationContextEvent在类中OnceApplicationContextEventListener<org.springframework.context.event.ContextRefreshedEvent>
-
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从接口复制的说明:HandlerMethodAdvicecallback before theMethodParameterbeing resolved- 指定者:
beforeResolveArgument在接口中HandlerMethodAdvice- 参数:
parameter- the method parameter to resolve.handlerMethod- the method to handlewebRequest- 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从接口复制的说明:HandlerMethodAdvicecallback after theMethodParameterbeing resolved- 指定者:
afterResolveArgument在接口中HandlerMethodAdvice- 参数:
parameter- the method parameter to resolve.resolvedArgument- the resolved argumenthandlerMethod- the method to handlewebRequest- 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从接口复制的说明:HandlerMethodAdviceInterception point before the execution of aHandlerMethod. Called after HandlerMapping determined an appropriate handler object, but before HandlerAdapter invokes the handler.- 指定者:
beforeExecuteMethod在接口中HandlerMethodAdvice- 参数:
handlerMethod-HandlerMethodargs- the resolved arguments ofHandlerMethodrequest-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从接口复制的说明:HandlerMethodAdviceInterception point after successful execution of aHandlerMethod. Called after HandlerAdapter actually invoked the handler.- 指定者:
afterExecuteMethod在接口中HandlerMethodAdvice- 参数:
handlerMethod-HandlerMethodargs- the resolved arguments ofHandlerMethodreturnValue- the return value ofHandlerMethoderror- the error afterHandlerMethodinvocationrequest-WebRequest- 抛出:
java.lang.Exception- if any error caused
-
-