android 面向切面编程Aop
2018-12-24 本文已影响8人
proud2008
https://www.jianshu.com/p/dca3e2c8608a
![](https://img.haomeiwen.com/i1351616/f5ff0c9f3f207c6d.png)
1、apt auto-service实例
根据注解生成.java文件
代码生成可使用javapoet实现
参考 https://blog.csdn.net/spinchao/article/details/72972185
https://github.com/Gavin-ZYX/APTTest
https://github.com/836154942/aptdemo
https://github.com/hiphonezhu/Android-Demos
我的示例
2、aspectj
https://www.jianshu.com/p/f90e04bcb326
示例1
示例
示例
3、javassist
https://blog.csdn.net/u010386612/article/details/51131642
https://www.jianshu.com/p/417589a561da