34

Android程序员必会技能---运行时动态生成类---之动态代理

 5 years ago
source link: https://juejin.im/post/5c0e2c39e51d45524146e6a6
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
谈到java中的动态生成一个类,主要分为两种方法,一种就是动态代理,另外一种就是asm。今天我们就来把对第一种方法 也就是动态代理生成类,这个流程搞清楚吃透。 要搞清楚动态代理,首先要弄明白为什么需要动态代理?静态代理不够用吗? 首先考虑一个场景,团队中git

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK