一般来讲,可以通过类方法或实例方法的调用来获得对象引用。
Generally, object references can be obtained by the invocation of a class method or instance method.
在很多情况下,通过仅在会话中存储一个键,并使用该键作为引用以在其他数据结构中查找更大的对象,从而可以避免在会话中存储大对象。
In many cases, storing large objects in the session can be circumvented by just storing a key in the session and using this key as a reference to lookup a larger object in some other data structure.
通过使用JNDIENC,依赖对象可以显式地请求对某个协作者的引用。
By using JNDI enc, the dependent object can explicitly request a reference to a certain collaborator.
通过使用各种变量,您获得对经常使用的不同对象的引用。
Using Variant variables, you get references to different objects that you use frequently.
总的来说,OR B通过引用传递选项基本上将调用的EJB方法作为本地调用对待(甚至对于带远程接口的EJB),并避免必需的对象复制操作。
To summarize, the ORB pass by reference option basically treats the invoked EJB method as a local call (even for EJBs with remote interfaces) and avoids the requisite object copy.
通过注入对代理对象的引用而不是注入实际的EJB远程接口存根,Spring还可以捕获在业务方法调用过程中引发的异常。
Spring can also catch exceptions thrown during business method calls by injecting a reference to a proxy object instead of the actual EJB remote interface stub.
通过增加到Signer对象的引用,可以指定数字签名的XML位置。
XML locations are specified for digital signatures by adding references to the Signer object.
在这种情况下,应用程序期望从JNDI(通过资源环境引用)查找实现了example .ExampleAdminObject接口的对象。
In this case, the application is expecting to look up from JNDI (through a resource-environment reference) an object that implements the example.ExampleAdminObject interface.
创建一个对象来持有、存储或引用要操作的XML(通常通过一些类型的InputSource来实现)。
Create an object to hold, store, or reference the XML to be operated on usually through some type of InputSource.
消息被发送之后,发送者可以保存对Future对象的一个引用并定期检查是否完成,或者,它也可以通过调用get方法来阻塞和等待。
Once the message has been sent, the sender can store a reference to the Future object and check periodically for completion, or it can block and wait if needed by calling the get method.
通过对s:SimpleObjectAttributeGroup的引用,复杂类型添加了所有NIEM对象上都允许的通用属性,比如s:id。
The complex type adds universal attributes like s: id that are allowed on all NIEM objects through a reference to s: SimpleObjectAttributeGroup.
理解像db4o这样的OODBMS是如何通过引用存储相关对象,是比较复杂的事情。
Understanding how an OODBMS like db4o stores associated objects held through references is a tricky business.
例如,可能不是所有的JAX - RPC系统都支持清单2中的代码,因为BookSearchBroker对象是通过引用返回的。
For instance, the code in Listing 2 May not be supported by all JAX-RPC systems, as the BookSearchBroker object is returned by reference.
强可及对象(strongly reachable):可以通过强引用访问的对象。
Strongly reachable: an object that can be accessed by a strong reference.
通过启用Server文档中DAOS选项卡上的 “Deferobjectdeletionforndays”设置,可以在服务器范围内延期删除 DAOS 未被引用的对象。
Deferred deletion of DAOS unreferenced objects occurs on a server-wide basis by enabling the "Defer object deletion for n days" setting on the DAOS tab in the server document.
一个重点是,xsi:type属性用于通过指示所引用的复杂类型来告知WebSphereProcessServer如何构造业务对象。
An important point is that the xsi: type attribute is used to tell WebSphere Process Server how to construct the business object by indicating what complex type you are referring to.
但是这也带来一个问题——如果更老一代中的对象引用一个不能通过从根开始的所有其他引用链到达的更年轻的对象该怎么办?
But this creates a problem — what if an object in the older generation references a younger object, which is not reachable through any other chain of references from a root?
不释放全局引用会造成各种问题,不仅因为它们会保持对象本身为活动状态,还因为它们会将通过该对象能接触到的所有对象都保持为活动状态。
Not freeing global references causes issues not only because they keep the object itself alive but also because they keep alive all objects that can be reached through the object.
垃圾收集(GC)通过删除堆中其他任何对象不再引用的对象来回收一部分堆。
Garbage collection (GC) reclaims portion of the heap by removing objects not referenced by any other object in the heap.
为了找到计算程序服务器,需要取得存储在这个文件中的对象引用的字符串版本,然后把它转换成对象引用,通过这个对象引用就可以进行调用了。
To locate the calculator server we need to take the string version of the object reference stored in the file and turn it into an object reference we can use to call through.
此工作是通过以下方式实现的:将受影响的代码单元复制到公用框架中,并将其引用的所有数据对象放置到公共数据接口中。
You do this by copying the impacted code units into a common framework and placing all of the data objects they refer to into a common data interface.
通信端点的命名:在OR PC协议中,需要OR PC端点的一些消息表示法以便通过网络传达对象引用。
Naming of communication endpoints: in ORPC protocols, some message representation of an ORPC endpoint is needed to communicate object references across the network.
数据库的作用是长时间持久化数据,但这是通过包含这些对象的数组实现的,而不是不断地引用数据库。
The role of the database is to persist the data over time, though manipulation is done via an array containing these objects, rather than referring to the database continually.
同样的技术可以用来提供具有被管理对象引用的中介,例如数据源可以用来通过其它数据来增加消息。
The same technique can be used to provide the mediation with managed object references, such as a data source that could be used to augment the message with other data.
根据对象引用草率处理堆可能会非常可笑,您可以通过对总体混乱进行某种自动分析而获得更好的服务。
While it could be amusing to walk through the heap, object reference by object reference, you're probably better served by doing some kind of automated analysis of the whole mess.
对象A和 对象B之间的循环引用通过灵活的SOAP编码规则可以很方便地表示。
The circular references between Object A and Object B are handily represented by the flexible SOAP encoding rules.
弱可及对象(weaklyreachable):不是强可及对象也不是软可及对象,并且能够通过弱引用访问的对象。
Weakly reachable: an object that is not strongly or softly reachable and can be accessed through a weak reference.
软可及对象(softlyreachable):不是强可及对象,并且能够通过软引用访问的对象。
Softly reachable: an object that is not strongly reachable and can be accessed through a soft reference.
我们通过方法对应的键将那些引用注入host对象(我们的Web控制器)。
We're injecting each of those references by their key into the host Object (our web controller).
我们通过方法对应的键将那些引用注入host对象(我们的Web控制器)。
We're injecting each of those references by their key into the host Object (our web controller).
应用推荐