Spring框架学习[创建AOP代理对象并对目标对象切面拦截](十一)
ew plaincopyprint //CGLIB回调AOP拦截器链 public Object intercept(Object proxy, Method method, Object[] args, MethodProxy methodProxy) throws Throwable { Object oldProxy = null; boolean setProxyContext = false; Class targetClass = null; Object target = null; try { //如果通知器暴露了代理 if (this.advised.exposeProxy) { //设置给定的代理对象为要被拦截的代理 oldProxy = AopContext.setCurrentProxy(proxy); setProxyContext = true; } //获取目标对象 target = getTarget(); if (target != null) { targetClass = target.getClass(); } //获取AOP配置的通知 List