• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
开水房
ASP.NET
博客园    首页    新随笔    联系   管理    订阅  订阅
2009年8月14日
facade -- 对于有很多接口的提供一个简单的接口
摘要: Function:A facade is an object that provides a simplified interface to a larger body of code, such as a class library. A facade can:make a software library easier to use and understand, since the faca... 阅读全文
posted @ 2009-08-14 16:53 白开水皮皮 阅读(188) 评论(0) 推荐(0)
decorate -- 通过反复包含对像,并对已包含对象方法添加功能
摘要: Function:The decorator pattern can be used to make it possible to extend (decorate) the functionality of a class at runtime.Actors:FunctionInterface, BasicFunctionClass, decorator, concreteDecoratorSu... 阅读全文
posted @ 2009-08-14 16:23 白开水皮皮 阅读(194) 评论(0) 推荐(0)
command -- 把动作封装成类
摘要: Function: Decouple the object that invokers the operation, by creating class for operations.Actors:Client, Invoker, command, concreteCommand, receiverSummary: 阅读全文
posted @ 2009-08-14 13:25 白开水皮皮 阅读(217) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3