Java设计模式
94me
Scripture says:Wide is the gate and broad is the way that leads to destruction,
and many enter through it.
展开
-
Java设计模式(一)——面向对象设计原则
设计原则名称 定义 单一职责原则 (Single Responsibility Principle, SRP) 一个类只负责一个功能领域中的相应职责 开闭原则 (Open-Closed Principle, OCP) 软件实体应对扩展开放,而对修改关闭 里氏代换原则 (Liskov Substitution Principle, LSP) 所有引用基类对象原创 2018-01-23 14:25:59 · 267 阅读 · 0 评论 -
代理模式之动态代理
代理模式(Proxy Pattern) :给某一个对象提供一个代 理,并由代理对象控制对原对象的引用。代理模式的英 文叫做Proxy或Surrogate,它是一种对象结构型模式。 接口类interface ProxyInterface{ void testProxy();}实现类static class ProxyImpl implements Proxy...原创 2018-08-03 20:28:02 · 284 阅读 · 0 评论