设计模式:
1.代理模式
分类
- 静态代理
- jdk代理
- cglib代理
需要目标类和代理类同时实现同一个接口,然后是对于目标类的一个扩容,因为代理类里面有目标类的引用
需要目标类和代理类同时实现同一个接口,然后通过jdk的动态代理, 生成一个类, 这一个缺点是代理类不需要和目标类实现同一个接口
这个更叫屌啦.不需要代理类和目标类实现同一个接口,因为采用的是子类的方式进行扩容,所有目标类不能有final修饰,否则无法生成子类, 而且方法不能用static/final修改.
设置模式总结
设计模式:
1.代理模式
分类
需要目标类和代理类同时实现同一个接口,然后是对于目标类的一个扩容,因为代理类里面有目标类的引用
需要目标类和代理类同时实现同一个接口,然后通过jdk的动态代理, 生成一个类, 这一个缺点是代理类不需要和目标类实现同一个接口
这个更叫屌啦.不需要代理类和目标类实现同一个接口,因为采用的是子类的方式进行扩容,所有目标类不能有final修饰,否则无法生成子类, 而且方法不能用static/final修改.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.