You can think of this class as a factory class.
您可以将此类视为工厂类。
Using a factory class to simplify object construction.
使用一个工厂类简化对象构建。
Create an empty OMElement object using a factory class.
用一个工厂类来创建一个空的OMElement对象。
The object-oriented solution to such a problem is the factory class.
针对这类问题的一种面向对象式解决方案是使用工厂类。
This setting specifies the JNDI factory class to look up the LDAP server.
该设置指定用于在LDAP服务器上进行查找的JNDIfactory类。
The example USES PortletServiceCacheFactory as the factory class for the service.
该例子使用PortletServiceCacheFactory作为该服务的工厂类。
The custom service factory class should implement the OSGi ServiceFactory interface.
该定制服务工厂类应该实现OSGiServiceFactory接口。
For each custom service, there should be a corresponding custom service factory class.
对于每一个定制服务,都应该有一个相对应的定制服务工厂类。
Create an instance of the Twitter class with the help of a factory class named TwitterFactory.
在一个名为TwitterFactory的工厂类的帮助下,创建一个Twitter实例。
This interface-to-factory class generates a DbCommand to delete a domain object from the database.
这个工厂接口类产生一个用来删除域对象的DbCommand。
You can just use a constructor for the appropriate class directly, without going through a factory class.
可以仅仅直接使用相应类的构造函数,而不用通过工厂类。
A vendor-defined factory class will expose methods that allow the programmer to set the connection parameters.
供应商定义的工厂类将提供方法以允许程序员设置连接参数。
The factory class maintains a pool of HttpApplication objects and uses them to service requests for the application.
该工厂类维护一个用于服务应用程序请求的HttpApplication对象池。
Note that the implementation classes are only instantiated through a factory class that is generated by the JAXB compiler.
请注意仅通过由JAXB编译器生成的一个工厂类来实例化实现类。
The first parameter (which I'll cover in more detail in the next section) is a factory class for creating endpoint instances.
第一个参数(我将在下一节详细介绍)是一个创建端点实例的工厂类。
The factory class itself is used to get an instance of Transformer (discussed in the next subsection) and to perform simple configuration.
工厂类本身用于获得Transformer的实例(在下一小节中讨论),并执行简单配置。
In the Extension Element Details area, type or browse to the name of your factory class, then click the class hyperlink next to the text box.
在ExtensionElementDetails区域,键入或浏览到工厂类的名称,然后单击文本框旁边的class超链接。
In the case of connection factories, the factory class can return a connection that has been pre-loaded with the proprietary connection information.
就连接工厂而言,工厂类可以返回一个已预先装入专有连接信息的连接。
A dynamic APIs scenario does not require the generation of a typed interface, factory class, or implementation class for the objects in your data model.
动态api场景并不要求为数据模型中的对象生成类型接口、工厂类或实现类。
This sets a system-wide property, which is read by the factory class used to switch between integration implementations, this time using the Spring model.
此文本将设置一个系统范围的属性,该属性可被工厂类读取,用于在集成实现之间进行切换,此时使用Spring模型。
At a minimum, two classes are required to use the resource environment provider in an application: a factory class, and a class that provides custom properties.
至少需要以下两个类才能在应用程序中使用资源环境提供程序:工厂类和提供自定义属性的类。
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.
如果框架与类混杂,可以添加一个工厂类,将它们装配到通用组合中,并为通用情况提供一个更简单的API。
Another approach would be to create a factory class for instantiating the implementations, but there would still be a dependency to the implementation class in your code.
另一种方法是创建用于实例化实现的工厂类,但是您的代码中仍然存在对实现类的依赖。
To ensure that the correct feed reader implementation is used, you also create a factory class that provides the appropriate feed reader based on your eventual desired output format.
要确保使用了正确的提要读取器实现,还要创建一个工厂类,基于最终所需的输出格式提供适当的提要阅读器。
The factory class keeps a static map of the threads that have been connected and can either return the existing connection handle, or create and store the connection handle when called by a thread.
工厂类保留已连接的线程的静态映射,可以在线程进行调用时返回现有连接句柄,或创建并存储连接句柄。
The static methods in the Factory class will then call the instance methods of your factory instance.
然后,Factory类中的静态方法会调用您工厂实例的实例方法。
Why had I implemented not just one, but two DAOs, and why had I set up a Factory class to allow a choice between them?
为什么我实现的dao不止一个,而是两个,又为什么设置了一个Factory类以允许在它们之间进行选择呢?
In addition to the generic Interface a Factory class is generated, which might be configured in the project's config file.
除通用基本接口外,还生成了一个Factory类,并可以在项目配置文件中进行配置。
This class, called the DCS Factory class, helps get the instance of the appropriate convertor for a particular conversion.
这个称为“DCS工厂类”的类帮助获取适当转换器的实例以便执行某个特定的转换。
This class, called the DCS Factory class, helps get the instance of the appropriate convertor for a particular conversion.
这个称为“DCS工厂类”的类帮助获取适当转换器的实例以便执行某个特定的转换。
应用推荐