Structural patterns

The flashcards below were created by user cepheuz on FreezingBlue Flashcards.

  1. 1
    • Adapter or Wrapper or Translator
    • Convert the interface of a class into another interface clients expect. An adapter lets classes work together that could not otherwise because of incompatible interfaces. The enterprise integration pattern equivalent is the translator.
    • 适配器模式
    • 将某个类的接口转换成客户端期望的另一个接口表示。适配器模式可以消除由于接口不匹配所造成的类兼容性问题。
  2. 2
    • Bridge
    • Decouple an abstraction from its implementation allowing the two to vary independently.
    • 桥接模式
    • 将一个抽象与实现解耦,以便两者可以独立的变化。
  3. 3
    • Composite
    • Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.
    • 组合模式
    • 把多个对象组成树状结构来表示局部与整体,这样用户可以一样的对待单个对象和对象的组合。
  4. 4
    • Decorator
    • Attach additional responsibilities to an object dynamically keeping the same interface. Decorators provide a flexible alternative to subclassing for extending functionality.
    • 修饰模式
    • 向某个对象动态地添加更多的功能。修饰模式是除类继承外另一种扩展功能的方法。
  5. 5
    • Facade
    • Provide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use.
    • 外观模式
    • 为子系统中的一组接口提供一个一致的界面,外观模式定义了一个高层接口,这个接口使得这一子系统更加容易使用。
  6. 6
    • Flyweight
    • Use sharing to support large numbers of similar objects efficiently.
    • 享元
    • 通过共享以便有效的支持大量小颗粒对象。
  7. 7
    • Proxy
    • Provide a surrogate or placeholder for another object to control access to it.
    • 代理
    • 为其他对象提供一个代理以控制对这个对象的访问。
  8. 8
    • Front controller
    • The pattern relates to the design of Web applications. It provides a centralized entry point for handling requests.
    • 前端控制器
    • 是用来提供一个集中的请求处理机制,所有的请求都将由一个单一的处理程序处理。该处理程序可以做认证/授权/记录日志,或者跟踪请求,然后把请求传给相应的处理程序。
  9. 9
    • Marker
    • Empty interface to associate metadata with a class.
  10. 10
    • Module
    • Group several related elements, such as classes, singletons, methods, globally used, into a single conceptual entity.
    • 模块模式
    • 被定义为给类提供私有和公共封装的一种方法,也就是我们常说的“模块化”。
  11. 11
    • Twin
    • Twin allows modeling of multiple inheritance in programming languages that do not support this feature.
Author:
cepheuz
ID:
315299
Card Set:
Structural patterns
Updated:
2016-02-04 12:38:50
Tags:
Design Patterns
Folders:
Software Engineering
Description:
Design Patterns - Structural patterns 結構型模式
Show Answers: