改进了简单工厂模式的实现策略,克服了原来简单工厂模式的局限性,同时弥补了工厂方法模式的不足。
The policy of Simple Factory is reformed, and applied to produce command objects, which eliminates the limitations of past Simple Factory and makes up the defect of Factory Method.
简单来说,就是产出的所有商品和服务的价值总和减去工厂和设备的价值损失。
In simple terms, this totals the value of all goods and services produced and subtracts loss in value of factories and equipment.
我们在工厂的工作很简单:将蛋糕放在传送带上,贴上糖霜耳朵,涂上糖霜的眼睛和鼻子,然后从传送带上取下兔子蛋糕。
Our roles in the factory were simple: Place cakes on a moving belt. Attach icing ears. Apply icing eyes and nose. Remove bunny from the belt.
该向导通过提示您输入最常见的配置属性信息来提供创建基本连接工厂配置的简单方法。
The wizard provides an easy way of creating a basic connection factory configuration by prompting you for the most common configuration properties.
最简单的方法就是在工厂模式中把代理类的建立封装起来。
The simplest approach is to encapsulate the creation of the proxy class within the Factory pattern.
为了提供一个在不同实现之间切换的简单方法,我们将提供一个接口和一个工厂。
In order to provide an easy way to switch between different implementations, we'll provide an interface and a factory.
听起来简单 ――但是这里您所选择的特定上下文工厂就要产生影响了。
Sounds simple -- but this is where the specific context factory that you chose could start to affect matters.
我们的对象工厂相当简单。
对于这个示例来说,这个存储器是由一个简单且短暂的散列表实现的,并由一个生成实现类的工厂提供(清单3和清单4)。
For this example, this store is implemented with a simple, ephemeral hash table and is provided with a factory for generating the implementation class (Listings 3 and 4).
那儿的工厂将继续大量炮制服装,但会避开马球衫之类的简单商品。
Its factories will continue to churn out clothes, but they will increasingly shun simple items, such as polo shirts.
原因很简单,沈阳拆除了大部分的旧工厂,重头再来上马了很多新设施和脱硫设备。
The reason, quite simply, is that the city tore down most of its old factories and literally started again, with newer facilities and desulfurization equipment.
执行一个简单的SQL查询,然后将结果传递给工厂。
You perform a simple SQL query, and then pass the results to your factory.
工厂开始时生产和李桂莲一样的农村人使用的简单物件,比如桌布、围裙和套袖。
The factory started out making the kinds of simple items used by rural folk like Ms. Li: tablecloths, aprons and sleeve protectors.
他们能在受伤率方面制定艰难的目标,对每个工厂,然后简单地,解雇那些没达标的工厂经理,奖励并重用那些达标的经理。
They can set tough objectives for injury rates for every plant and then simply fire the plant managers who miss, reward and recognize those who make the Numbers.
相对于要求世界停开汽车、停办工厂以减少二氧化碳所需做出的努力,这也是相对简单的方式。
It is also a relatively easy way to reduce carbon dioxide, compared to the effort required in asking the world to stop driving cars and running factories.
为那些希望修改服务工厂源代码的用户提供方便;目前执行此操作并不是一个简单的过程。
Help those who want to modify the Service Factory source code; doing this is not a straightforward process.
对我来说,原因很简单,工厂总量太多,产量过剩,现在客户们不愿意采购这么多产品。
There are too many factories in the world, making too many products, and at the moment customers don't want to buy so much, " he says.
目前, getCalculator()工厂方法采用了非常简单的方法,它假定由这个服务所创建的全部计算器都是通过相同的服务端点来访问的。
The getCalculator() factory method currently takes the very simple approach of assuming that all calculators created by this service will be accessed via the same service endpoint.
工厂类本身用于获得Transformer的实例(在下一小节中讨论),并执行简单配置。
The factory class itself is used to get an instance of Transformer (discussed in the next subsection) and to perform simple configuration.
这与调用基类的工厂方法并断言返回对象具有正确类型一样简单。
This can be as simple as invoking the base class's factory method and asserting that the returned object is of the correct type. For example.
第一个简单的生产工作流程适合于制造多种产品的生产工厂。
The first simple production workflow would suit a production house that manufactures only a large variety of products.
如果框架与类混杂,可以添加一个工厂类,将它们装配到通用组合中,并为通用情况提供一个更简单的API。
If the framework gets cluttered with classes, you can add a factory class that assembles them into common combinations and provides a simpler API for common cases.
在这里我们要说一个简单但又不乏说服力的例子。上个月在以色列,三家大型的乳制品工厂共同决定把白干酪的价格提高75%。
There's a more prosaic but no less illustrative example in Israel, where the three main dairies all decided to increase the price of cottage cheese by 75% last month.
科学家一直在寻找更简单的方法制造名为浓缩铀的昂贵材料- - - - - -核反应堆和炸弹的燃料,现在只在大型工厂生产。
Scientists have long sought easier ways to make the costly material known as enriched uranium - the fuel of nuclear reactors and bombs, now produced only in giant industrial plants.
博帕尔医疗救护机构提醒我们,这家工厂并未取缔,只是简简单单地被废弃。
As the Bhopal Medical Appeal reminds us, the plant has instead simply been abandoned.
简单地说,就像兵工厂发生了爆炸。
在客户端环境中使用WebSphereMQ消息提供程序连接工厂时,类加载考虑事项比服务器环境要简单地多。
The class loading considerations when using WebSphere MQ messaging provider connection factories are simpler in the client environment than they are in the server environment.
这种方法比较简单可靠,尤其是对于缺少三座标数控铣床设备的工厂,制作滚珠丝杠付加工回珠槽时,可供参考。
This simple but accurate method is useful in machining a ball-lead-screw, especially when no dimensional numerical-control milling machine is available.
这种方法比较简单可靠,尤其是对于缺少三座标数控铣床设备的工厂,制作滚珠丝杠付加工回珠槽时,可供参考。
This simple but accurate method is useful in machining a ball-lead-screw, especially when no dimensional numerical-control milling machine is available.
应用推荐