LD is tigger forever,CG are not brothers forever, throw the pot and shine forever.
Modesty is not false, solid is not naive, treacherous but not deceitful, stay with good people, and stay away from poor people.
talk is cheap, show others the code and KPI, Keep progress,make a better result.
Survive during the day and develop at night。
目录
概 述
执行熟悉的,advisro的方法,5个增强器,包装成拦截器连。
创建好了,会执行processId()方法,拦截器连。
如果说没有拦截器利用反射执行目标方法,记录当前拦截器的索引,
如果没有拦截器执行目标方法,或者拦截器的索引和拦截器的-1和索引。
看到这个过程,Expose 获取的调用invoke 方法,他会调用invoke 方法,invoke(this),
method invokecation 的共享,method Invokation, Invoke this 同样熟悉的流程。
获取索引为0的,相当于第2个拦截器。
索引都会自增一次,方法调用的这个调用的this的方法,invoke(this),
这个浏览器的interfacepter ,invoke(this),method before interptor.
before都是拦截器调用前置通知,前置通知,
来做这个事情,mi.proceed。目标方法已执行网,目标方法,返回的了上一届,后置通知的拦截器
后置通知拦截器,本该returning ,抛给最上层,miproceede(),返回通知,
链式获取每一个拦截器,拦截器执行invoke方法,每一个拦截器等待下一个拦截器执行完成以后在回来执行。
小结
参考资料和推荐阅读
1.链接: link.