This makes them very convenient, but they can come back to bite you if you are truly building for a widgetized, componentized environment.

  • 这使得它们使用起来非常方便,但如果确实想要构建一个部件化、组件化的环境,单例模式用起来就不一定那么舒服了,有可能会坏事。
  • 来源:互联网摘选更新时间:2026-07-13 00:03:53

  • 重点词汇
  • come back回来;记起;强烈反驳;<非正>重复说;
  • butconj.但是;而是;除了;只因为;
  • convenientadj.实用的;方便的;附近的;省事的;
  • theypron. 他/她/它们;人们,大家;政府,当局;她们;
  • thempron.他们;她们;它们;指性别不详的人时,用以代替him或her
  • arevi.(用于第二人称单复数现在时,第一、三人称复数现在时)是;
  • buildingn.建筑物;楼房;房屋;建筑(艺术或行业);
  • canaux. 能够;可以;有机会;
  • 你如n.If you;
  • 相关例句
1、

An example use case for a singleton would be a database connection pool: You don't want your application to have multiple resource-intensive instances of a connection pool class.

比如数据库连接池就是单例设计模式的一个例子:我们一般不想让应用程序具有连接池类的多个资源密集型实例。

互联网摘选

2、

In the program the author apply observer pattern, composite pattern, factory pattern and singleton pattern.

在系统中使用了观察者模式、合成模式、简单工厂模式和单例模式。

互联网摘选

3、

Model of Optimized Diagram Decision-Making Based on Single-Mode

基于单例模式的优化图型决策模型构造

互联网摘选

4、

These are defined as singleton and prototype.

这些都在单例模式和原型模式中定义了。

互联网摘选

5、

Unlike the simplistic models in books and training courses, a real enterprise has a very complicated data architecture.

不同于书本和培训课程中所提的单例模式,真正的企业具有非常复杂的数据架构。

互联网摘选

6、

The Singleton pattern applies to situations in which there needs to be a single instance of a class.

单例模式支持那些需要只保存一个单独的实例的类。

互联网摘选

7、

For each access single instance mode, saving the system resources.

对每个类的访问采用单例模式,节省系统资源。

互联网摘选

8、

This has the added benefit of separating singleton code from the class code leaving the flexibility to use several instances of the class or using the class as a singleton.

这样分离出单例结构的代码,将有利于保持按单例模式使用类或不按单例模式使用类的灵活性。

互联网摘选

9、

Agricultural Expert System Platform is characterized by complexity. The paper applies Strategy Pattern, Composite Pattern, Command Pattern, Singleton Pattern and Facade Pattern to the system.

鉴于农业专家平台系统的复杂性,论文提出了运用策略模式、组合模式、命令模式、单例模式以及门面模式构建农业专家系统。

互联网摘选

10、

The singleton pattern is probably one of the most often used OOP design patterns; it restricts the number of object instances of a class to one.

单例模式可能是最常用的OOP设计模式之一了;它限制了一个类的对象实例数只能为1。

互联网摘选

11、

The phenomena of the critical flux of start-oscillation having relations with heating history has been discovered.

实验中还发现脉动热管起振的临界热流密度与热载荷施加的历史有关.

互联网摘选

12、

With the introduction of cokequenching technology, heat tube exchanger is gradually used in cokequenching system.

随着干熄焦技术的引进, 热管换热器在干熄焦装置中也逐步得到应用.

互联网摘选

13、

Care should always be taken in thermal design when flattening of heat pipes is needed.

为此如果压扁热管,在热量设计中就应该小心.

互联网摘选

14、

This artical put the equality of critical pressure for calculating.

文中提出了波纹换热管临界压力预测计算式.

互联网摘选

15、

Barrel is cooled by special wind cooling system.

机筒采用特殊风冷却系统冷却.

互联网摘选

16、

Fierce competition between manufacturers of mobile devices also accelerating the introduction of wireless charging.

无线设备供应商之间的激烈烈竞争也加速了无线充电技术的引入.

互联网摘选

17、

This may make them reluctant to switch to a common wireless-charging standard.

这可能使消费者不乐意接受通用的无线充电标准.

互联网摘选

18、

It is useless to pay for a premium gold-plated HDMI cable for a low-end television set.

这是没用的,以支付保费镀金HDMI连接线为 低端 电视.

互联网摘选

19、

Now aged 33, Li won nine WTA Tour titles during her career, the high points of which were her triumphs at the French Open in 2011 and the 2014 Australian Open.

如今,33岁的李娜在她的职业生涯中共获得了9次女子职业网球巡回赛(WTA Tour)的冠军,在2011年法网公开赛、2014年澳网公开赛中夺冠是她职业生涯的巅峰。

互联网摘选

20、

Murray has now won three titles in as many weeks on the Asian swing of the ATP World Tour-his best winning streak-after his victories in Bangkok, Thailand; and Tokyo, Japan.

穆雷以最佳连胜之势(15连胜)抱走了ATP世界巡回赛亚洲赛季的三座冠军奖杯另外两场分别是在泰国曼谷和日本东京。

互联网摘选

  • 今日热词
  • 热门搜索

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

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