工厂模式的问题引起多实例现象
表3使用泛型实现工厂模式。
Seam使用工厂模式初始化非组件对象和集合。
Seam USES the factory pattern to initialize non-component objects and collections.
工厂模式是根据不同类型创建多态对象的一个常见方法。
Factory pattern is a common pattern for creation of polymorphic objects of different concrete types.
最简单的方法就是在工厂模式中把代理类的建立封装起来。
The simplest approach is to encapsulate the creation of the proxy class within the Factory pattern.
清单6用工厂模式,在Layout类中创建了Field。
Listing 6 creates a Field using the Factory pattern in the Layout class.
工厂模式的应用使本系统的结构精巧简洁、易于理解。
Application of the factory model of the structure of the system compact concise, easier to understand.
核心容器的主要组件是BeanFactory,它是工厂模式的实现。
A primary component of the core container is the BeanFactory, an implementation of the Factory pattern.
我们使用工厂模式(见附注)为某个绑定类型创建窗体并产生绑定详细信息。
We used the factory pattern (see sidebar) for creating and populating binding details for a specific binding type.
与传统的分布式对象系统不同,BPEL4WS实例不是通过工厂模式创建的。
Unlike traditional distributed object systems, in BPELWS instances are not created via a factory pattern.
工厂模式定义一个用于创建对象的接口,让子类决定实例化哪一个类。
Factories used to create a model definition of the target interface, an example of the type of decision of which category.
许多业务对象框架采用工厂模式来建立业务对象接口的具体实现,例如user接口。
Many business object frameworks employee a Factory pattern to create concrete implementations of their business object interfaces, such as the User interface.
利用工厂模式实现图元创建机制,给出了图元属性编辑、旋转操作等功能具体设计。
Use the factory model to create graphic element, then realize the function of property editing, operation just as rotation.
但实际上它是一个现代能量有效利用的工厂模式,它可以回收浪费的热量来生成厂里自己需要的电量。
But it is actually a model of modern energy efficiency, harnessing its waste heat to generate much of its own electricity.
希望在Redmond的MVC团队可以听到大家不满的声音,并用更好的工厂模式来实现它。
Hopefully the MVC team in Redmond has heard the cries against this and will implement more Factories.
改进了简单工厂模式的实现策略,克服了原来简单工厂模式的局限性,同时弥补了工厂方法模式的不足。
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.
可以将日历Feed的业务交互关系图可视化为某种形式的“面向服务的工厂模式”,这是另一个新出现的面向服务的概念。
The business interaction diagram for the calendar feed may be visualized as some form of "service-oriented factory pattern", another emergent service-oriented concept.
本文分析了知识产权保护对世界工厂模式下相对工资率及经济增长率的影响,并用近5年中国的经验数据进行验证。
This paper analyses the effects of China's intellectual property protection (IPP) on relative wage rate and economic growth in a technological diffusion model of China's World Factory.
若要创建已注册类型的多个实例,请使用工厂模式创建一个对象管理器,该对象管理器将向应用程序注册并管理多个实例。
To create multiple instances of a registered type, use the factory pattern to create an object manager that is registered with the application and then manages the multiple instances.
文中论述适配器模式、工厂模式以及观察者模式在雷达终端软件系统中的应用,介绍如何通过设计模式提高软件的复用性。
Based on application description of the adapter, factory and observer modes in radar terminal software, this paper introduces how to improve the software reusability via design mode.
我们已经对工厂模式有所耳闻,而Ninject就类似于某种“超级工厂”,它知道如何根据你提供的提示,创建所有类型的对象。
We've all heard of the factory pattern, right? Well, Ninject is kind of like a "super factory", in that it knows how to create all sorts of objects, based on hints that you provide.
我们将这个架构称为“工厂模式”(Factory Schema),它为我们提供构造什么、用什么和怎么构造等信息,也是工厂构造者解决方案模型说明书的一个组成部分。
We call this the 'factory schema', and it tells us what we are building, with what, and how. It is part of the guidance the factory builder conveys for their model of the solution in this domain.
这些URL模式是由扩展处理器和它的工厂提供的。
These URL patterns are supplied by the extension processor and its factory.
如您从此片段中看到的,首先,我们定义了获得与J2C连接工厂相对应的所有配置对象的模式。
As you can see from this snippet, first, we defined the pattern to obtain all the configuration objects corresponding to J2C connection factory.
您可以在应用程序需要创建其类型依赖于子类的实现的对象时,使用工厂方法模式。
You use the factory method pattern when an application needs to create objects whose type depend on the implementation of subclasses.
示例代码包括客户机和绑定模式的连接工厂,以演示如何实现二者。
The sample code includes connection factories for both client and bindings mode to demonstrate how to implement both.
而工厂方法模式,顾名思义,定义的是一个用来大量产出对象的方法的实现。
The factory method pattern, as its name implies, defines the implementation of a method used to churn out objects.
而工厂方法模式,顾名思义,定义的是一个用来大量产出对象的方法的实现。
The factory method pattern, as its name implies, defines the implementation of a method used to churn out objects.
应用推荐