Package net.cofcool.chaos.server.core.aop
-
Interface Summary Interface Description ScannedMethodInterceptor 拦截接口, 被代理类需使用Scanned注解, 推荐继承AbstractScannedMethodInterceptor -
Class Summary Class Description AbstractScannedMethodInterceptor 抽象类, 实现 ScannedMethodInterceptor 接口, 推荐应用继承该类, 而不是直接实现 ScannedMethodInterceptorApiProcessingInterceptor LoggingInterceptor 记录日志, 包括http请求与返回值等。被代理类需使用Scanned注解。ScannedCompositeMethodInterceptor 代理配置, 可通过ScannedCompositeMethodInterceptor.setInterceptorList(List)方法配置ScannedMethodInterceptor, 用户可自定义ScannedMethodInterceptor实例, 被拦截对象需使用Scanned注解ScannedMethodInvocation 代理MethodInvocation, 不支持ScannedMethodInvocation.proceed()操作。ScannedResourceAdvisor 代理使用Scanned注解的类ScannedResourceAdvisor.ScannedResourceAdvisorHelper 实现BeanPostProcessor接口把ScannedMethodInterceptor实例注入到ScannedResourceAdvisor中, 不使用 "Spring Bean" 注入的原因是防止ScannedMethodInterceptor实例提早创建从而影响应用其它实例的生命周期ValidateInterceptor 参数校验切面, 处理含有BindingResult参数的方法, 通过拦截Controller实现, 被代理类需使用Scanned注解。