-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proxy和Insert有什么本质区别 #21
Comments
Proxy是hook方法被调用的地方,insert是hook方法体,也就是方法声明的地方。 |
如果针对非系统类,可以实现的效果是一样的,只是针对系统类不一样吧 |
非系统类建议用Insert,虽然最终效果可能一样,但背后额外为你生成的方法和类的量是不一样的哦 |
可以具体解释下吗? proxy生成的方法数比insert要多吧?毕竟insert只是在源方法基础进行织入 |
是的,proxy生成的方法数要多。 |
Proxy和Insert有什么本质区别么
The text was updated successfully, but these errors were encountered: