Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

wanghuading/design-pattern

Repository files navigation

设计模式学习及作业

  • 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.装饰器模式及观察者模式 - 观察者模式

    • 类似对主题的发布和订阅,订阅者即是观察者。

About

设计模式

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%

AltStyle によって変換されたページ (->オリジナル) /