摘要:
谈到AOP,大家乡到的一般就是两种主流的实现方式--动态代理和静态织入。两种主流的方式应该说各有优缺点,前者性能好,但是较难实现,稳定性不高;后者,更稳定,但是限制颇多,且执行效率不高。在本文中,Teddy将从动态织入和静态织入的技术区别出发,通过一个生动的故事,试图探索一种兼俱动态织入和静态织入的优点,并避免其缺点的全新的动态拦截思路。
阅读全文
摘要:
In this chapter, I'll show you my AOP framework - Teddy's Aspect Weaver which is based on AspectDNG's ILML library. I just do my best to make this framework easier for using and avoid AspectDNG's disadvantages and encumbering facts. Also this framework extends functions of AspectDNG and provides more supported types of advices. Let's take a closer look with the example within the Aspect Weaver V0.6 source code and sample.
阅读全文