如果您适当地限制了变量的范围并且减少实例变量的使用,则可以减少此类对象保留。
If you scope variables appropriately and reduce the use of instance variables, you can reduce this kind of object retention.
您可以使用它从一个业务对象验证实例数据。
You can use it to validate instance data from a business object.
所有案例类型实例使用一个部分安全代理继承这个对象中的安全设置。
The security on this object is inherited from all case type instances using a partial security proxy.
为对象缓存的最好的方式是存储任何的它要在实例变量中使用的JNDI引用。
The best way to cache is for an object to store any JNDI reference it USES in an instance variable.
在类型的静态成员上使用反射技术与在对象的实例成员上进行反射有一点小小的差别。
Using reflection techniques on static members of a type differs slightly from reflecting on instance members of an object.
我们还使用了实例变量来存储对模仿对象的引用。
We also used an instance variable to store a reference to the mock object.
当需要为业务对象创建新的实例时,您可以使用值。
When you want to create a new instance of a business object, you use the value.
如果对象池大小没有正确调优,许多未使用的对象实例最终会被闲置,耗尽内存而不产生任何价值。
If the pool size is not tuned correctly, many unused object instances can end up hanging around, using up memory without contributing value.
使用对象池限制特定类的实例的数量。
Object pools are used to restrict the number of instances of a certain class.
这一方法和适当的getter和setter方法一同设置 formBean的属性,如下所示,其中使用从模型返回的对象实例
This method sets the attributes of the formBean with the appropriate getter and setter methods, as shown below using the object instance returned from the model
LaunchApp使用Assembly .LoadFrom静态方法创建Assembly对象的实例,而不是通过显式调用构造函数来创建。
LaunchApp creates an instance of an Assembly object using the Assembly.LoadFrom static method rather than by using an explicit constructor call.
summarize方法是通过Dictionary实例使用对象操作符调用的。
The summarize method is invoked via a Dictionary instance using the object operator.
您还可以使用名为prototype实例变量来指定对象的基础。
You can use the instance variable called prototype to specify the basis for your object.
您可能会注意到可以得到传输的文件的名称,在这个示例中,在实例化File对象时使用到了文件名称。
You may notice that the file name of the transferred file can be obtained and, in this case, the file name is used when instantiating the file object.
步骤7:使用send方法发送请求给XKMSRegister对象,将XmlTransportSoap实例传递给这个方法。
Step 7: send the request to the XKMSRegister object using the send method to which the XmlTransportSoap instance is passed.
如上文中的清单所示,XJConf可以使用属性或子元素正确配置实例化的对象。
As the previous listings demonstrated, XJConf can use either attributes or child elements to correctly configure an instantiated object.
在实例化公开名为Context的JNDI接口的对象时,会使用这些属性。
These properties are used while instantiating an object that exposes a JNDI interface named Context.
或者,我们可以声明一个使用通用实例的对象,它可能要用常量来定义内部结构,然后我们可以选择一个常量来为这个函数赋值,以使其具备变量的特征。
Alternately, you can declare a kind of object using the all-purpose instantiator var, which may use literals to define internal structures.
第1章:对Modeler中的流程进行建模——使用Modeler创建实例流程,然后添加数据对象、判决条件和资源。
Chapter 1: Model the process in Modeler — creates the sample process with Modeler and adds data objects, decision conditions and resources.
正如前文所述,每个对象也可以缓存它在实例变量中使用的JNDI引用,所以每个对象在某一时刻只能访问一个资源。
As mentioned earlier, each object can also cache the JNDI references it USES in instance variables, so that each object only has to access a reference one time.
它们通常(但不总是)通过对象实例使用对象操作符来调用的。
They are usually — but not always — called via an object instance using the object operator.
因此,在使用业务对象变量前,必须首先将新的业务对象实例赋值给它。
Therefore, you must first assign a new business object instance to a business object variable before using it.
对象图:使用对象图来探究对象的真实世界的实例,以及它们之间的关系。
Object diagram: Use an object diagram to explore real - world examples of objects and the relationships between them.
构造器实例化了DOM,因此所有基本类都将使用同一个对象。
The constructor instantiates DOM so that all underlying classes will use the same object.
总大小的差别是由于聚合数据结构级别视图使用汇总实例计数,对象/类泄漏疑点视图使用实际事例和大小计数。
The difference in cumulative size occurs because the aggregated data structure level view uses summarized instance counts and the object/class leak suspects view uses actual instance and size counts.
这意味着可以只根据对象实例进行跟踪,而不需要使用对象等价性来跟踪这些JDBC对象。
This means I can track based on just object instances; I don't need to use object equality to track these JDBC objects.
您可以实例化一个新对象并使用箭头表示法来填充文档内的字段。
You would instantiate a new object and use arrow notation to fill in the fields in the document.
尽管必须使用该方式来实例化适配器对象,但这还是避免了复制数据值。
Although you must instantiate the adapter object with this approach, it still avoids copying the data values.
对各个复合文件工件进行检查,然后使用工厂方法在内存中实例化不同对象。
The various composite file artifacts are inspected, and factory methods help instantiate the various objects in memory.
所检索到的第一个对象是DocumentRoot实例对象,此对象在清单8中的操作逻辑中作为根节点使用。
The DocumentRoot instance object is the first retrieved, and is the root node used in the operation logic in Listing 8.
应用推荐