设计模式开篇

设计模式是一套被反复使用的、多数人知晓的、经过分类编目的、代码设计经验的总结。所学知识是从网络上学习总结、设计到自己的理解、以便加深印象


设计模式的类型

  • 创建型模式 (判断针对某个给定实例需要创建哪些对象时更加灵活)
    • <a href="http://www.jianshu.com/p/727b6c0ab006">工厂模式(Factory Pattern)</a>
    • 抽象工厂模式(Abstract Factory Pattern)
    • <a href="http://www.jianshu.com/p/21f0cfe5ec2d">单例模式(Singleton Pattern)</a>
    • 建造者模式(Builder Pattern)
    • 原型模式(Prototype Pattern)
  • 结构型模式 (继承的概念被用来组合接口和定义组合对象获得新功能的方式)
    • 适配器模式(Adapter Pattern)
    • 桥接模式(Bridge Pattern)
    • 过滤器模式(Filter、Criteria Pattern)
    • 组合模式(Composite Pattern)
    • 装饰器模式(Decorator Pattern)
    • 外观模式(Facade Pattern)
    • 享元模式(Flyweight Pattern)
  • 行为型模式 (这些设计模式特别关注对象之间的通信。)
    • 代理模式(Proxy Pattern)
    • 责任链模式(Chain of Responsibility Pattern)
    • 命令模式(Command Pattern)
    • 解释器模式(Interpreter Pattern)
    • 迭代器模式(Iterator Pattern)
    • 中介者模式(Mediator Pattern)
    • 备忘录模式(Memento Pattern)
    • 观察者模式(Observer Pattern)
    • 状态模式(State Pattern)
    • 空对象模式(Null Object Pattern)
    • 策略模式(Strategy Pattern)
    • 模板模式(Template Pattern)
    • 访问者模式(Visitor Pattern)
  • JavaEE模式 (关注表示层。这些模式是由 Sun Java Center 鉴定的)
    • MVC 模式(MVC Pattern)
    • 业务代表模式(Business Delegate Pattern)
    • 组合实体模式(Composite Entity Pattern)
    • 数据访问对象模式(Data Access Object Pattern)
    • 前端控制器模式(Front Controller Pattern)
    • 拦截过滤器模式(Intercepting Filter Pattern)
    • 服务定位器模式(Service Locator Pattern)
    • 传输对象模式(Transfer Object Pattern)

Paste_Image.png
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 134,933评论 18 139
  • 目录 为什么要写设计模式系列 学设计模式之前,必学 UML 设计模式概览 创建型模式(Creational Pat...
    幺鹿阅读 1,148评论 2 1
  • 根据设计模式的参考书 中所提到的,总共有 23 种设计模式。这些模式可以分为三大类:创建型模式(Creationa...
    依依玖玥阅读 516评论 0 2
  • 设计模式(Design pattern)代表了最佳的实践,通常被有经验的面向对象的软件开发人员所采用。设计模式是软...
    Chars阅读 687评论 2 5
  • 为什么需要面相对象 在历史进程中,我们由面相对象编程转向了面相对象编程,项目的规模也变得越来越大,其中有着必然的需...
    leaf_eater阅读 305评论 0 0