摘要:
Intent (定义) Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in 阅读全文
摘要:
Intent(定义) Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support un 阅读全文
摘要:
Intent (定义) 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 阅读全文
摘要:
Intent (定义) Provide a surrogate or placeholder for another object to control access to it.(为另一个对象提供代理或占位符,以控制对它的访问。) Also Known As (别名) Surrogate Moti 阅读全文
摘要:
Intent (定义) Use sharing to support large numbers of fine-grained objects efficiently(使用共享可以有效地支持大量的细粒度对象。) Motivation (详细说明) 如下图所示,这是一个文档编辑器,有字符对象,列对象 阅读全文
摘要:
Intent (定义) Provide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier 阅读全文
摘要:
Intent (定义) Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functi 阅读全文