对于此实例,我们将忽略对由于UI变更导致的应用程序中的对象层次的可能的变更。
For this example, we are ignoring possible changes to the object hierarchy in the application that result from UI changes.
我们获取了一个DocumentBuilderFactory实例,它定义了一个工厂api,用于支持应用程序获取解析器,可以通过XML文档生成dom对象。
An instance of DocumentBuilderFactory is obtained, which defines a factory API that enables applications to obtain a parser that produces DOM object trees from an XML document.
RelationshipService将业务对象标记为已创建,生成新实例ID,并创建新的表条目来将其与应用程序特定的ID关联。
The Relationship Service marks the business object as created, generates a new instance id, and creates a new table entry to associate it with the application-specific id.
将XPath表达式从String转化为XPathExpression对象,然后将该对象应用于所支持的数据模型实例中的任何节点。
To convert an XPath expression from a String to an XPathExpression object, which can then be applied to any node in an instance of the supported data model.
案例实例,设置应用于案例中包含的所有对象。
另外,它还创建应用程序对象的一个实例并开始初始化过程。
It also creates an instance of the application object and begins the initialization process.
这个应用程序的当前数据架构没有向我施加任何限制—理论上我可以为同一个对象创建无限个实例。
The application's current data architecture leaves me with no constraints - I could theoretically create an infinite number of instances of the same object.
将应用程序对象存储到会话或请求中,这样做可以允许规则引擎稍后查找对象,而无需创建一个新的实例。
Storing the application object on the session or request enables the rules engine to later find that object without having to create a new instance.
由于大型应用程序中组件的通信方式,所以假设对象实例的创建者就是它的用户并不总是安全的。
Because of the way components in large applications communicate, it's not always safe to assume that the creator of an object instance is its user.
这包括关于运行时环境、业务环境和创建事件的应用程序对象的实例的信息。
This includes information about the runtime environment, the business environment and the instance of the application object that created the event.
分析应用程序对象的实例数目。
当运行一条规则时,规则引擎必须找到该应用程序对象的一个实例。
When a rule runs, the rules engine must find an instance of the application object.
模型的主实例保持长期状态,并提供应用程序逻辑;而视图使用的副本实际上是一个可任意使用的数据访问对象。
The primary instance of the model is keeping long-term state and providing application logic; the copy used by the view is essentially a disposable data-access object.
下面的代码示例显示了应用程序如何通过其JNDI名称查找缓存实例,将对象放入缓存实例中,并稍后对其进行检索。
The code example shows how the application looks up a cache instance through its JNDI name, puts an object into a cache instance, and then retrieves it later.
将复杂对象的实例返回给客户机应用程序,后者将在输出页面上显示对象的属性,如图5中所示。
Returns the instance of the complex object to the client application, which displays the attributes of the object on the output page as shown in Figure 5.
当应用程序需要业务对象实例时,它实际会接收到一个动态代理类的实例。
When the application needs a business object instance, it will actually receive an instance of the dynamic proxy class.
当应用程序执行查找时,就创建一个托管对象的实例,而且在把对象返回应用程序之前设置好属性。
When an application performs a lookup, an instance of the administered object is created and the properties set before returning the object to the application.
本文介绍了一个用于在J2EE应用程序中管理对象实例的框架。
This article proposes a framework for managing object instances in J2EE applications.
下一步,应用程序将控制器对象作为全局变量进行实例化。
Next, the application instantiates the controller object as a global.
就像在传统面向对象编程中实现的那样,这些关注点是作为单独的实例处理的,有可能在应用程序类中产生互不相关的代码(就是混乱)。
As implemented in traditional object-oriented programming, these concerns are handled as individual instances, introducing potentially unrelated code (that is, clutter) into application classes.
我们将此对象的范围设置为application,因为每个应用程序只需要一个此对象的实例。
We set the scope of this object to application, as only one instance is needed per application.
您可能会想到,ServerMBean代表应用程序服务器的管理对象,它可以是一个单独的实例或者集群的一个成员。
As you would expect, the server MBean represents the management object for an application server, which could be a standalone instance or a member of a cluster.
一个应用程序对象是一个HttpApplication类的实例,该类隐藏在global . asax文件中。
An application object is an instance of the HttpApplication class-the class behind the global.asax file.
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.
此类提供了一组类或一组单例(singleton)对象实例,在一个JAX-RS应用程序内包括所有的根级别的资源和提供程序(由 @Provider注释的类)。
This class provides a set of classes, or a set of singleton object instances, that include all of the root-level resources and providers (classes annotated with @Provider) in a JAX-RS application.
假定两个应用程序都定义了Customer业务对象,并生成了自己的内部键来唯一地标识此业务对象的实例。
Suppose two applications each define Customer business objects and generate their own internal keys to uniquely identify instances of this business object.
在init方法中,使用应用程序对象中的实例变量或WebSphereDynamicCache映射来存储getter方法所使用的信息(比如用户名)。
During the init method, store information used by the getter methods (like the user name) using instance variables on the application object or using WebSphere Dynamic Cache maps.
在进行了远程或其他代价高昂的调用之后,可以将结果存储到应用程序对象的实例变量或者WebSphereDynamicCache映射中,然后在以后调用时重用该结果。
After making a remote or other expensive call, store the result in an instance variable on the application object or in a WebSphere Dynamic Cache map; then, reuse that result on later calls.
表示前面提及的Pluto服务的对象实例可以被在同一个servlet上下文内作为Web控制台web应用程序的组件检索。
Object instances representing the Pluto services mentioned previously can be retrieved by a component running within the same servlet context as the Web console Web application.
表示前面提及的Pluto服务的对象实例可以被在同一个servlet上下文内作为Web控制台web应用程序的组件检索。
Object instances representing the Pluto services mentioned previously can be retrieved by a component running within the same servlet context as the Web console Web application.
应用推荐