创建JSON处理对象的工厂类。
供应商定义的工厂类将提供方法以允许程序员设置连接参数。
A vendor-defined factory class will expose methods that allow the programmer to set the connection parameters.
此外,所有生成的接口都有一个包含静态方法的工厂类,比如。
Also, all the generated interfaces have a factory class that contains static methods such as.
请注意仅通过由JAXB编译器生成的一个工厂类来实例化实现类。
Note that the implementation classes are only instantiated through a factory class that is generated by the JAXB compiler.
可以仅仅直接使用相应类的构造函数,而不用通过工厂类。
You can just use a constructor for the appropriate class directly, without going through a factory class.
JiT编译器动态地在浏览器的内存中创建这个工厂类。
The JiT compiler creates that factory class on the fly, in memory, in the browser.
第一个参数(我将在下一节详细介绍)是一个创建端点实例的工厂类。
The first parameter (which I'll cover in more detail in the next section) is a factory class for creating endpoint instances.
就连接工厂而言,工厂类可以返回一个已预先装入专有连接信息的连接。
In the case of connection factories, the factory class can return a connection that has been pre-loaded with the proprietary connection information.
这个工厂类将变成由相互依赖的工厂方法构成的巨型蜘蛛网。
This factory is going to become a huge spiderweb of interdependent factory methods!
SimpleCloudAPI中的工厂类要求一组证书作为参数。
The factory classes in the Simple Cloud API require an array of credentials as a parameter.
对于每个类,每个绑定工厂类都用这个绑定中的定义去引用支持类。
Each binding factory class references the support classes for every class with a definition in that binding.
该定制服务工厂类应该实现OSGiServiceFactory接口。
The custom service factory class should implement the OSGi ServiceFactory interface.
单实例对象Message作为message类的元存储库和工厂类。
The Message singleton serves as a metadata repository and factory class for the Message class.
该工厂类维护一个用于服务应用程序请求的HttpApplication对象池。
The factory class maintains a pool of HttpApplication objects and uses them to service requests for the application.
动态api场景并不要求为数据模型中的对象生成类型接口、工厂类或实现类。
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.
像WebSphere这样的应用服务器所带的工厂类并不总是把您放到名称空间的根上。
The factory classes that come with app servers like WebSphere do not always put you in the root of the namespace.
这个称为“DCS工厂类”的类帮助获取适当转换器的实例以便执行某个特定的转换。
This class, called the DCS Factory class, helps get the instance of the appropriate convertor for a particular conversion.
找到该组合以后,此工厂类将实例化在同一个转换器标记中找到的类名称并将其返回。
After the combination is found, the class name found in the same convertor tag is instantiated and returned.
在一个名为TwitterFactory的工厂类的帮助下,创建一个Twitter实例。
Create an instance of the Twitter class with the help of a factory class named TwitterFactory.
工厂类本身用于获得Transformer的实例(在下一小节中讨论),并执行简单配置。
The factory class itself is used to get an instance of Transformer (discussed in the next subsection) and to perform simple configuration.
另一种方法是创建用于实例化实现的工厂类,但是您的代码中仍然存在对实现类的依赖。
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.
对于SAX和DOM工厂类,一个异常处理已请求的但不受支持的特性,另一个异常处理实例化错误。
As with the SAX and DOM factory classes, one exception handles requested — but unsupported — features, and another exception handles instantiation errors.
工厂类和抽象工厂类能够被用做依赖框架,但是已经有了专门的框架,被称为反转控制容器。
Factories and Abstract Factories can be used as dependency frameworks, but there are specialized frameworks for that, known as Inversion of Control Container.
至少需要以下两个类才能在应用程序中使用资源环境提供程序:工厂类和提供自定义属性的类。
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.
工厂类保留已连接的线程的静态映射,可以在线程进行调用时返回现有连接句柄,或创建并存储连接句柄。
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.
清单12显示在Blueprint中通过工厂类构造beans所需的BlueprintXML示例。
Listing 12 shows an example of the Blueprint XML required to construct beans from factory classes in Blueprint.
还应该考虑准备一个工厂类,以便很容易从XML媒介转到数据库媒介(或者有一天可能会用到的其他媒介)。
You should also consider putting a factory in place that allows you to easily move from an XML medium to a database medium (or to anything else you might one day need).
如果框架与类混杂,可以添加一个工厂类,将它们装配到通用组合中,并为通用情况提供一个更简单的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.
要确保使用了正确的提要读取器实现,还要创建一个工厂类,基于最终所需的输出格式提供适当的提要阅读器。
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.
此工厂类在convertors . xml中存在的转换器标记中搜索该输入和输出MIME类型的组合。
This factory class searches the input and the output mime-type combination in the convertor tag present in convertors.xml.
应用推荐