此外,在构造函数内有某种逻辑,这种逻辑将确定是否先获得实例。
Moreover, there is certain logic within its constructor that would determine whether an instance can be obtained in the first place.
获得实例后,它被用于启动和提交事务,如果发生任何错误,事务将回滚。
After it's acquired, it's used to start and commit a transaction, and if there are any errors, the transaction is rolled back.
这里的creator属性被设置为值new,这意味着DWR应当调用类的默认构造函数来获得实例。
The creator attribute here is set to the value new, meaning that DWR should call the class's default constructor to obtain an instance.
对于此后端类型,UDPDMI的每个方法均包含查找目标EJB Home、获得实例和调用指定方法的代码。
With this backend type, each method of the UDPDMI contains code to lookup the home of the target EJB, obtain an instance, and to invoke the specified method.
请记住,一旦设置了这些选项,在调用该方法之后,它们将影响所有从类厂获得的实例。
Remember that once these options are set, they affect all instances obtained from the factory after the method invocation.
一般来讲,可以通过类方法或实例方法的调用来获得对象引用。
Generally, object references can be obtained by the invocation of a class method or instance method.
在该例中,因为两个业务对象之间具有从属性,所以在访问相关的订单之前,有必要获得一个客户实例。
In the example, it is necessary to get a customer instance before accessing the associated orders because of the dependency between these two business objects.
对于此实例,我们获得了与J2C资源适配器相关的服务器配置信息。
For this example, we obtain the server configuration information relevant for J2C resource adapters.
清单7显示了如何获得货币实例,以及如何格式化将要显示为货币的数值。
Listing 7 shows how to get a currency instance and how to format a number to be displayed as currency.
这些选项影响所有通过类厂获得的语法分析器实例。
These options affect all parser instances obtained through the factory.
属性配置之后,MQTT客户实例会从MQTT客户机工厂获得。
After properties configuration, an MQTT client instance is obtained from the MQTT client factory.
这个实例接收、取消,并获得客户订单的状态,由本系列第一部分中所开发的订单方案所表示。
This is an example service that accepts, cancels, and gets the status of a customer order, represented by the order schema developed in Part One of this series.
可以将每个模板应用到多个实例中,从而获得单点的维护性和一致性。
You can apply each template to multiple instances, thereby affording you a single point of maintenance and uniformity.
我们将在下面了解到,为了获得事件处理程序实例的已确定范围的局部变量,可以将活动的范围定义为事件处理程序的直接子项。
We'll see below that it is useful to define a scope as a direct child of an event handler in order to have scoped variables that are local to the event handler instance.
但如果想要或必须使用一个SSH客户机连接到实例,则必须获得这个客户机并准备好SSH私有密钥以便安全地连接到您的实例。
But if you want to or have to connect to your instance using an SSH client, you'll have to acquire the client and prepare the SSH private key to securely connect to your instance.
此类中的代码首先进行JNDI查询,以确定是否可以获得服务的实例。
The code in this class first does a JNDI lookup to see if it can get an instance of the service.
由于在每次调用表单时都会更改标记,因此想要成为攻击者就必须获得发送表单的实例,去掉标记,并把它放到假表单中。
Because the token is changed each time the form is drawn, a would-be attacker would have to get an instance of the sending form, strip out the token, and put it in their spoofing version of the form.
因此,无需在每个实例中安装从供应商获得的产品。
Hence, there is no need to install vendor-acquired products inside each instance.
可以查询此类对象池以获得类类型实例,如前面关于池技术的示例中所述。
Such pools can be queried for an instance of the class type, as given in the previous example about pools.
通过创建简单的实用程序类很容易获得异步远程接口的实例(清单8中的第7 - 13行)。
A simple utility class is created to easily get the instance of the async remote interface (lines 7-13 in Listing 8).
工厂类本身用于获得Transformer的实例(在下一小节中讨论),并执行简单配置。
The factory class itself is used to get an instance of Transformer (discussed in the next subsection) and to perform simple configuration.
资源框架将该消息发送到适配器组件,以便首先获得Address资源实例。
The framework routes this message to the adapter component to first obtain the Address resource instance.
Distributed map类是应用程序所使用的编程接口,该类允许应用程序从缓存实例获得对象和将对象放置到其中,并可以使其失效。
The DistributedMap interface is the programming interface that your applications work with, enabling the application to get and put objects into the cache instance, as well as invalidate them.
该数据访问对象极其简单;它不连接任何外部资源(比如关系数据库)以获得Test实例。
This data access object is extremely simple; it does not connect to any external resources (such as relational databases) to obtain Test instances.
一旦线程执行完毕,就可从每个PseudoRemThr实例获得部分结果。
After the threads finish executing, the partial result is obtained from each PseudoRemThr instance.
我还可以通过获得输出Label实例的句柄,断言其文本是否是给定单词的定义,从而验证应用程序的功能。
I can still verify the application's functionality by obtaining a handle to the output Label instance and asserting that its text is the definition for a given word.
要使用基于事件迭代器的API,应用程序首先必须从XMLInputFactory获得XMLEventReader 的实例。
To use the event iterator-based API, the application must first obtain an instance of XMLEventReader from the XMLInputFactory.
此外,您需要获得publisher实例,使用发布程序(publisher)初始化chartdataupdater,并在启动servlet的init方法中启动ChartDataUpdater。
Additionally, you need to get the publisher instance, initialize ChartDataUpdater with the publisher, and start ChartDataUpdater in the init method of the startup servlet.
通过创建or g . apache .velocity .context . Context类的实例可以获得velocity上下文。
You can obtain a velocity context by creating an instance of the org.apache.velocity.context.Context class.
然后,通过调用connect方法并传入url从authhelper实例获得连接。
You then obtain a connection from the AuthHelper instance by calling the connect method and passing in the URL.
应用推荐