此外,在构造函数内有某种逻辑,这种逻辑将确定是否先获得实例。
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 your client code, you now need to obtain an instance of the client proxy.
必须获得与您实例相关联的私有密钥。
You have to get the private key associated with your instance.
对于此实例,我们获得了与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.
可以将每个模板应用到多个实例中,从而获得单点的维护性和一致性。
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.
一旦获得该底层实例,一般的SAX方法都可用。
Once you get this underlying instance, the usual SAX methods are available.
此类中的代码首先进行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.
可以查询此类对象池以获得类类型实例,如前面关于池技术的示例中所述。
Such pools can be queried for an instance of the class type, as given in the previous example about pools.
客户机必须首先获得计算器的实例。
The client must first get what it thinks is an instance of our calculator.
工厂类本身用于获得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.
本例的不同之处在于如何获得symfony实例。
The difference in this case is in how you get the symfony instance.
单击Query获得所有实例数据。
要使用基于事件迭代器的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.
之后,脚本试图用getBean()从session范围获得这个bean实例。
Then, the script tries to get the bean instance from the session scope with getBean().
通过创建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.
应用推荐