You can use the factory pattern for this purpose.
为了实现该目的,能够使用工厂模式。
Factory pattern for objects that differ in one member data type?
在一个成员的数据类型不同,对象工厂模式?
Listing 6 creates a Field using the Factory pattern in the Layout class.
清单6用工厂模式,在Layout类中创建了Field。
The basic thing comes in my mind is either Singleton or Factory Pattern.
基本的事情出现在我的脑海里是单件或工厂模式。
Seam USES the factory pattern to initialize non-component objects and collections.
Seam使用工厂模式初始化非组件对象和集合。
Factory pattern is one of the effective patterns which decouple client and server.
工厂模式是把客户端模块与服务端模块有效解耦的模式之一。
It is called a Factory Pattern since it is responsible for "manufacturing" an object.
它之所以叫工厂模式是因为它由一个对象工厂来负责被调用。
How to set different properties from objects which are returned by the Factory pattern?
如何从这是由工厂模式返回的对象设置不同的属性?
Hopefully this article helped you understand the basics of the abstract factory pattern.
希望这篇文章能帮助你理解抽象工厂模式的基础。
The simplest approach is to encapsulate the creation of the proxy class within the Factory pattern.
最简单的方法就是在工厂模式中把代理类的建立封装起来。
Factory pattern is a common pattern for creation of polymorphic objects of different concrete types.
工厂模式是根据不同类型创建多态对象的一个常见方法。
A primary component of the core container is the BeanFactory, an implementation of the Factory pattern.
核心容器的主要组件是BeanFactory,它是工厂模式的实现。
Unlike traditional distributed object systems, in BPELWS instances are not created via a factory pattern.
与传统的分布式对象系统不同,BPEL4WS实例不是通过工厂模式创建的。
You can use a Factory pattern to create an instance of an implementation class that implements your interface.
您可以使用Factory模式来创建实现接口的实现类的实例。
We used the factory pattern (see sidebar) for creating and populating binding details for a specific binding type.
我们使用工厂模式(见附注)为某个绑定类型创建窗体并产生绑定详细信息。
Many business object frameworks employee a Factory pattern to create concrete implementations of their business object interfaces, such as the User interface.
许多业务对象框架采用工厂模式来建立业务对象接口的具体实现,例如user接口。
The business interaction diagram for the calendar feed may be visualized as some form of "service-oriented factory pattern", another emergent service-oriented concept.
可以将日历Feed的业务交互关系图可视化为某种形式的“面向服务的工厂模式”,这是另一个新出现的面向服务的概念。
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.
我们已经对工厂模式有所耳闻,而Ninject就类似于某种“超级工厂”,它知道如何根据你提供的提示,创建所有类型的对象。
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.
若要创建已注册类型的多个实例,请使用工厂模式创建一个对象管理器,该对象管理器将向应用程序注册并管理多个实例。
As you can see from this snippet, first, we defined the pattern to obtain all the configuration objects corresponding to J2C connection factory.
如您从此片段中看到的,首先,我们定义了获得与J2C连接工厂相对应的所有配置对象的模式。
You use the factory method pattern when an application needs to create objects whose type depend on the implementation of subclasses.
您可以在应用程序需要创建其类型依赖于子类的实现的对象时,使用工厂方法模式。
The factory method pattern, as its name implies, defines the implementation of a method used to churn out objects.
而工厂方法模式,顾名思义,定义的是一个用来大量产出对象的方法的实现。
It's an eye opener to realize that oh, actually this pattern, factory or strategy, is a solution to my problem.
睁开眼睛去认识它,事实上这种模式,策略,可以解决我的问题。
The next-highest layer of abstraction is the BeanFactory interface, an implementation of the Factory design pattern that enables objects to be created and retrieved by name.
下一个最高级抽象是BeanFactory接口,它是工厂设计模式的实现,允许通过名称创建和检索对象。
In the latter case, the component USES the Factory design pattern to look up the default formatters for the class of the specified value.
在后一种情况下,组件用工厂(Factory)设计模式来查找指定值类的缺省格式化器。
Typical examples include a cached DAO, cache of JNDI references, or any sort of common factory or other component that needs to use the Singleton pattern.
典型的例子有:缓存的DAO,JNDI引用的缓存,或者任何类型的公共工厂或者其他需要使用Singleton模式的组件。
Flux's API will change to a POJO model to replace the original factory design pattern that it has had since 2000.
Flux的API也将由从2000年开始一直采用的工厂设计模式转为POJO模型。
Flux's API will change to a POJO model to replace the original factory design pattern that it has had since 2000.
Flux的API也将由从2000年开始一直采用的工厂设计模式转为POJO模型。
应用推荐