-
factory-pattern:01. Spring中常用的设计模式概述及工厂模式详解- 课堂 代码:
com.yuanleilei.pattern.factory.. - 作业 代码:
com.yuanleilei.homework..
- 课堂 代码:
-
singleton:02.单例模式及原型模式-单例模式 -
prototype:02.单例模式及原型模式-原型模式- 浅克隆:克隆基本数据类型和String类型
- 深度克隆:递归克隆基本数据类型和引用类型
-
proxy:03.深度分析代理模式- 静态代理
- 动态代理
-
strategy:04.策略模式及模板模式 - 策略模式- 客户端按已有的策略,进行选择。
-
template-method:04.策略模式及模板模式 - 模板方法模式- 按特定的过程执行
-
delegate:05.委派模式及适配器模式 - 委派模式- 全权代理和策略模式的组合
-
adapter:05.委派模式及适配器模式 - 适配器模式- 对两个标准做中转,兼容适配
-
decorator:06.装饰器模式及观察者模式 - 装饰器模式- 保持接口,增强性能
-
observer:06.装饰器模式及观察者模式 - 观察者模式- 类似对主题的发布和订阅,订阅者即是观察者。
forked from leileiyuan/design-pattern
-
Notifications
You must be signed in to change notification settings - Fork 0
wanghuading/design-pattern
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Latest commit | ||||
Repository files navigation
About
设计模式
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Java 100.0%