That’s where the Dependency Injection container comes in. It is a smart object factory.
这就是依赖注入容器责无旁贷的,它是一个智能的对象工厂。
This object factory creates the context object, which you use to work with named contexts in ApacheDS.
这个对象工厂创建了Context对象,可以将这个对象与ApacheDS中的命名上下文一起使用。
You make a call to the Derby database, use the object factory to create topping objects, and return them.
对Derby数据库进行一次调用,使用对象工厂创建浇头对象,并返回浇头对象。
AXIOM allows many different object factory implementations, but the linked list is by far the most popular.
AXIOM允许很多不同的对象工厂实现,但链表是最常用的。
To manage these mechanisms properly, you must return objects obtained from an object factory back to the same factory.
为了能够正确地管理这个机制,必须将从工厂中得到的对象再返回到同个工厂中。
The code USES the SCA service manager to locate the business object Factory, which is used to create business objects from XML schemas.
这些代码使用SCA服务管理器查找业务对象工厂(Business Object Factory),后者用于从XML模式中创建业务对象。
So, we use a Factory class (a.k.a. an object factory) to provide the client code with instances of Db2AttendeeDAO and DefaultDAO as needed.
因此我们使用Factory类(又名对象工厂),以根据需要为客户机代码提供Db2AttendeeDAO和 DefaultDAO实例。
The java.naming.factory.initial property specifies the name of the object factory that you are using as part of your JNDI client-side implementation.
initial属性指定了用作JNDI客户端实现的一部分的对象工厂的名称。
In principle, you could use the factory to create just the company, and then use the company data object to create the departments and employees.
从理论上说,可以仅使用此数据工厂创建公司对应的对象,然后使用公司数据对象创建部门和雇员对象。
A data source refers to the object or factory that generates connections to the actual source of data (usually a database) within an application.
数据源是指对象或工厂,用于生成与应用程序内的实际数据源(通常是数据库)的连接。
In this way, the object returned from the static factory method could implement any number of interfaces defined when I create the proxy.
用这种方式,静态工厂方法返回的对象可以实现建立代理时所定义的任意数量的接口。
In fact, many would have started this approach with a factory object, rather than a factory method — we did, but soon backed away.
实际上,许多人已经用工厂对象来着手这种方法,而不是用工厂方法—我们以前是这样做的,但很快就放弃了。
First, the program retrieves a queue connection factory by looking up the context object with a queue connection factory name.
首先,这个程序通过查找上下文对象获得一个指定名称的队列连接工厂。
The data factory allows us to create data objects, but also each data object created has an API to create related data objects.
数据工厂允许创建数据对象,但所创建的每个对象都具有用于创建相关数据对象的API。
If you accidentally have more than one factory object for one of the reasons above, you will still have two of the created objects, even if each factory object is built correctly.
基于上述原因,如果得到了多于一个的工厂类对象,即使每个工厂类对象都被正确创建,依然会得到两个被创建类对象。
The straightforward way is to call the data factory again to create an object of the appropriate type, then assign it to the property in its parent object.
直接的方法为再次调用数据工厂来创建恰当类型的对象,随后将其指派给其父对象的属性。
At run time, a factory object can generate a connection, locate the CICS server, and invoke the CICS program at the server.
在运行时,工厂对象可以生成连接、定位CICS服务器和激活服务器上的CICS程序。
Optional: create a unit test to assure that the original target object's factory method still returns the correct, non-mock object.
可选的:创建单元测试以确保原始目标对象的工厂方法仍返回正确的非模仿对象。
A prized object in the factory is the stamper, the master copy of a software product that takes great precision to produce.
压模,软件产品的主拷贝,需要极大的精度去生产,是工厂的一件弥足珍贵的物品。
A connection factory is an object that is used to create connections to a resource manager.
连接工厂是用于创建至资源管理器的连接的对象。
Use the current SSLContext object to get a SSL socket Factory and instantiate an SSL socket out of it, as described in the previous section.
使用当前的SSLContext对象来获取SSLSocketFactory并且实例化其中的ssl套接字,如同前面章节中所描述的。
The Abdera object provides the Factory, which can create entries or other objects.
Abdera对象提供了Factory,它能创建条目或者其他对象。
Factory function that creates instances of the Xyz object.
创建一个Xyz对象实例的函数。
Both the creation of the factory and the manager object incur high performance costs (similar to connecting to a database with JDBC).
工厂的创建和管理器的创建都会导致较高的性能代价(类似于用JDBC连接到一个数据库)。
Later, he shows how a hand-rolled Factory-like object might be used to control and reduce the application's dependency on the D.I framework.
之后,他向我们展示了如何通过工厂对象来控制并降低应用对DI框架的依赖?
If an abstract factory object must be passed in, then you must add a new public constructor or mutator.
如果必须传入抽象工厂对象,那么您必须添加一个新的公用构造函数或赋值(mutator)方法。
Invoke Custom service Factory during runtime to initialize a service object.
在运行过程种调用CustomServiceFactory来实现服务对象的初始化。
Invoke Custom service Factory during runtime to initialize a service object.
在运行过程种调用CustomServiceFactory来实现服务对象的初始化。
应用推荐