Skip to content
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

动态代理 | 天增的博客 #14

Open
zxcvbnmzsedr opened this issue Sep 21, 2019 · 0 comments
Open

动态代理 | 天增的博客 #14

zxcvbnmzsedr opened this issue Sep 21, 2019 · 0 comments

Comments

@zxcvbnmzsedr
Copy link
Owner

https://ztianzeng.com/2019/01/31/java/Java%E5%8A%A8%E6%80%81%E4%BB%A3%E7%90%86/index.html

动态代理什么是动态代理代理类在程序运行时创建的代理方式被称之为动态代理。这中代理类非同与手动指定,而是在代码中配置动态生成的。 相比较于静态代理,动态代理的优势在于可以很方便的对代理类的函数进行统一的处理,而不用修改每个代理类的函数。不过其代理对象必须某个接口的实现,他是通过在运行期间创建一个接口的实现类来实现目标的代理。 使用动态代理InvocationHandler 接口在使用动态代理时,需要

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant