• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
山高我为峰
博客园    首页    新随笔    联系   管理    订阅  订阅
2016年5月12日
装饰模式
摘要: 装饰模式的定义: Attach additional responsibilities to an object dynamically keeping the same interface. Decorators provide a flexible alternativeto subclassi 阅读全文
posted @ 2016-05-12 17:11 山高我为峰 阅读(305) 评论(0) 推荐(0)
责任链模式
摘要: 责任链模式的定义: Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request.Chain the receiving obj 阅读全文
posted @ 2016-05-12 15:21 山高我为峰 阅读(222) 评论(0) 推荐(0)
命令模式
摘要: 命令模式的定义: Encapsulated a request as an object ,thereby letting you parameterize clients with different requests, queue or log requests,and support undo 阅读全文
posted @ 2016-05-12 13:53 山高我为峰 阅读(310) 评论(0) 推荐(0)
中介者模式
摘要: 中介者模式定义: Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objectsfrom referring to each o 阅读全文
posted @ 2016-05-12 11:39 山高我为峰 阅读(206) 评论(0) 推荐(0)
原型模式
摘要: 原型模式的定义: Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype; 用原型实例指定创建对象的种类,并且通过拷贝 阅读全文
posted @ 2016-05-12 02:12 山高我为峰 阅读(230) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3