就像在传统面向对象编程中实现的那样,这些关注点是作为单独的实例处理的,有可能在应用程序类中产生互不相关的代码(就是混乱)。
As implemented in traditional object-oriented programming, these concerns are handled as individual instances, introducing potentially unrelated code (that is, clutter) into application classes.
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.
表示前面提及的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.
案例实例,设置应用于案例中包含的所有对象。
需要访问资源的应用程序对象只需通过bean引用得到这类预先定义好的实例的引用即可(这方面的更多内容在下一节中)。
Application objects that need to access resources simply receive references to such pre-defined instances through bean references (more on this in the next section).
另外,它还创建应用程序对象的一个实例并开始初始化过程。
It also creates an instance of the application object and begins the initialization process.
将应用程序对象存储到会话或请求中,这样做可以允许规则引擎稍后查找对象,而无需创建一个新的实例。
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.
对于此实例,我们将忽略对由于UI变更导致的应用程序中的对象层次的可能的变更。
For this example, we are ignoring possible changes to the object hierarchy in the application that result from UI changes.
分析应用程序对象的实例数目。
当运行一条规则时,规则引擎必须找到该应用程序对象的一个实例。
When a rule runs, the rules engine must find an instance of the application object.
由于大型应用程序中组件的通信方式,所以假设对象实例的创建者就是它的用户并不总是安全的。
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 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.
模型的主实例保持长期状态,并提供应用程序逻辑;而视图使用的副本实际上是一个可任意使用的数据访问对象。
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.
将复杂对象的实例返回给客户机应用程序,后者将在输出页面上显示对象的属性,如图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.
本文介绍了一个用于在J2EE应用程序中管理对象实例的框架。
This article proposes a framework for managing object instances in J2EE applications.
我们将此对象的范围设置为application,因为每个应用程序只需要一个此对象的实例。
We set the scope of this object to application, as only one instance is needed per application.
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.
一个应用程序对象是一个HttpApplication类的实例,该类隐藏在global . asax文件中。
An application object is an instance of the HttpApplication class-the class behind the global.asax file.
假定两个应用程序都定义了Customer业务对象,并生成了自己的内部键来唯一地标识此业务对象的实例。
Suppose two applications each define Customer business objects and generate their own internal keys to uniquely identify instances of this business object.
您可能会想到,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.
在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.
此类提供了一组类或一组单例(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.
在进行了远程或其他代价高昂的调用之后,可以将结果存储到应用程序对象的实例变量或者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.
在实现了SelfInitializingApplicationObject接口的情况下,如果当规则运行时没有找到应用程序对象,那么规则引擎将尝试实例化该对象。
When the SelfInitializingApplicationObject interface is implemented and if the object is not found when the rule runs, the rules engine will try to instantiate that object.
将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.
Spring还利用一个以XML编写的应用程序上下文来实例化、配置和组装应用程序中的对象。
Spring also utilizes an application context written in XML to instantiate, configure, and assemble the objects in your application.
AdminControl对象用于通过JMXBean管理应用程序服务器的运行实例。
The AdminControl object is used to manage the running instance of an application server by a JMX bean.
AdminControl对象用于通过JMXBean管理应用程序服务器的运行实例。
The AdminControl object is used to manage the running instance of an application server by a JMX bean.
应用推荐