The Decorator Pattern的意思|示意

美 / / 英 / /

装饰器模式


The Decorator Pattern的网络常见释义

装饰模式 The Decorator Pattern (装饰模式)装饰模式要解决的问题提供一种修改类的行为,而避免创建众多的派生类的途径。

装饰者模式 ... 观察者模式 The Observer Pattern 装饰者模式 The Decorator Pattern 工厂方法模式 The Factory Method Pattern ...

装饰器模式 · 观察者模式 ( The Observer Pattern ) 实例详解 ·装饰器模式 (The Decorator Pattern) 实例详解

The Decorator Pattern相关短语

1、 THE DECORATOR DESIGN PATTERN 装饰设计模式

The Decorator Pattern相关例句

An advantage of the decorator pattern is that you can easily tack on more than one decorator to the base at a time.

装饰器模式的优点是可以轻松地同时跟踪库的多个装饰器。

By using the Decorator pattern, it is simple to separate the code that performs invocations from the code that provides caching itself.

通过使用装饰模式,实现执行调用的代码与提供缓存的代码相分离,将非常简单。

The Decorator Pattern attaches additional responsibilities to an object dynamically.

装饰者模式可以动态地给一个对象增加其他职责。

Figure 4 shows a class diagram for the decorator pattern.

图4显示了装饰器模式的类图。

The Strategy pattern can be used to implement operations' variability, and the Decorator pattern can be used to implement parameters' variability.

Strategy 模式可用于实现操作的可变性,Decorator 模式可用于实现参数的可变性。

This pattern USES late binding to invoke the currently valid version of a decorator process representing the actual human task, and thus it enables late binding to that task.

此模式使用后期绑定来调用表示实际人工任务的装饰流程的当前有效版本,从而实现到该任务的后期绑定。