Decorator Pattern

[ˈdekəreɪtə(r) ˈpætn]
  • 网络

    装饰模式;装饰器模式;装饰者模式;修饰模式;设计模式之装饰者模式

数据更新时间:2025-11-14 11:58:43
1、

The general "decorator pattern" is a design pattern that allows adding new behavior to an existing component dynamically.

一般的“装饰模式”是一种设计模式,允许动态地向现有组件添加新的行为。

互联网摘选

2、

Enter the decorator pattern, which allows you to add this functionality onto the AutomobileModel in a nice, clean class.

进入装饰器模式,该模式允许您通过一个优秀整洁的类将此功能添加到AutomobileModel。

互联网摘选

3、

First, I'll show a traditional implementation of the Decorator pattern in Groovy, then make it more dynamic in subsequent examples.

首先,我将演示修饰符模式在Groovy中的传统实现,然后再在后续示例中提高它的动态性。

互联网摘选

4、

Enter the Decorator pattern, which can add a capability uniformly to any Widget.

我们进入有能够统一增加(一些特性)能力的装饰器模式。

互联网摘选

5、

Research and Application of Decorator Pattern

Decorator模式的研究及应用

互联网摘选

6、

Decorator is a structural pattern that defines a wrapper for caching, publishing, and exchanging service assertions used for connecting to appropriate services and re-utilizing proxy classes.

装饰(Decorator)模式是一种结构模式,它定义了缓存、发布与交换服务声明的封装器,用于连接合适服务与可重用的代理类。

互联网摘选

7、

The decorator process pattern does not only apply to human tasks, however, it can also be applied to allow time-based versioning for any type of long-running, asynchronous service.

然而,装饰流程模式不仅适用于人工任务,还可以应用它来对任何类型的长时间运行的异步服务进行基于时间的版本管理。

互联网摘选

8、

The Gang of Four book defines the Decorator pattern as

四人组的书籍将修饰符模式定义为

互联网摘选

9、

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

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

互联网摘选

10、

Both are based on the Decorator design pattern and utilize JUnit's suite mechanism.

这两种类型都基于Decorator设计模式并利用JUnit的suite机制。

互联网摘选

11、

Indeed, the Decorator pattern is the way out of this mess.

确实,装饰器模式是避免这种情况的好方法。

互联网摘选

12、

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

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

互联网摘选

  • 相关词组
  • 今日热词
  • 热门搜索
  • adequate[ˈædɪkwət] adj.足够的;适当的,恰当的;差强人意的;胜任的;
  • whom[huːm] pron.谁(who的宾格);
  • dam[dæm] n.水坝,堰;水库;(牙科用的)橡皮障;〈比喻〉障碍;vt.用水坝阻止;阻塞,抑制;
  • ego[ˈiːɡəʊ] n.自我;自负;自尊心;自我意识;
  • public[ˈpʌblɪk] n.平民;志趣相投的人;adj.公众的;公共的;政府的;公用的;公开的;公开场合的;;
  • psp 程序段前缀;Play Station Portable,索尼公司开发的新型多功能掌机;
  • decision making[diˈsiʒən ˈmeɪkɪŋ] 决策,判定;作出判定;
  • westlink 西遇;西域;西部公路
  • timestamp['taimstæmp] 时间戳
  • so-so[ˈsəusəu] adj.一般的;普通的;中等的;不好也不差的;
  • could[kəd] aux.能够,打算;用于假设语气的条件句;用于虚拟语气的结论句;modal.可能会,有时会;(用于表示对某人的行为的厌恶)能,可以;(询问是否可做某事)能,可以;(礼貌地请求别人做事以及提供或建议某事物时)能,可以;能,会;(用于建议)可以;好像,仿佛;(强调感觉)真想
  • skyline[ˈskaɪlaɪn] n.地平线;(以天空为背景的)轮廓线;架空索;展览会场的顶层;

纳米英语英语词典(dict.nm3.cn)为您提供在线翻译英语词典单词大全英译汉汉译英等英语服务!可按单词字数词义分类查询。支持lj:关键词格式查询例句。

用户反馈
请选择反馈类型(可多选):
您的联系方式:
反馈内容:
提交成功 小编会尽快处理
回到顶部
点击反馈