Creating reference objects
First Claim
1. A storage medium encoded with instructions, wherein the instructions when executed comprise:
- receiving a request comprising a target object name and a target object information to create a target object from a client;
in response to the request from the client to create the target object, creating a reference object from a class definition at a server, wherein the target object and the reference object are separate;
in response to the creating the reference object, binding the reference object to a name space at the server, wherein the binding the reference object to the name space at the server is performed while the target object associated with the reference object is not instantiated, wherein the binding the reference object to the name space at the server while the target object associated with the reference object is not instantiated further comprises saving the target object name and a pointer in the name space, wherein the pointer is associated with the target object name, and wherein the pointer points to the reference object;
in response to an invocation of a method at the client on the reference object, determining whether the target object associated with the reference object exists, wherein the client searches for the target object name and the pointer to the reference object in the name space using the target object name as an index into the name space;
if the target object does not exist, creating an instance of the target object and returning the instance of the target object to the method that was invoked on the reference object in response to the determining, wherein the target object comprises a home object; and
if the target object does exist, returning the target object to the method that was invoked on the reference object in response to the determining.
0 Assignments
0 Petitions
Accused Products
Abstract
A storage medium and computer system that, in an embodiment, in response to a request to create a target object, create a reference object for the target object and bind the reference object to a name space without the target object being instantiated. In response to an invocation of a method on the reference object, a determination is made whether a target object associated with the reference object exists. If the target object does not already exist, the target object is instantiated. If the target object does already exist, the target object is returned. In this way, target objects are not instantiated until a method on the reference object is invoked, which in an embodiment increases the performance of the invoking application.
17 Citations
10 Claims
-
1. A storage medium encoded with instructions, wherein the instructions when executed comprise:
-
receiving a request comprising a target object name and a target object information to create a target object from a client; in response to the request from the client to create the target object, creating a reference object from a class definition at a server, wherein the target object and the reference object are separate; in response to the creating the reference object, binding the reference object to a name space at the server, wherein the binding the reference object to the name space at the server is performed while the target object associated with the reference object is not instantiated, wherein the binding the reference object to the name space at the server while the target object associated with the reference object is not instantiated further comprises saving the target object name and a pointer in the name space, wherein the pointer is associated with the target object name, and wherein the pointer points to the reference object; in response to an invocation of a method at the client on the reference object, determining whether the target object associated with the reference object exists, wherein the client searches for the target object name and the pointer to the reference object in the name space using the target object name as an index into the name space; if the target object does not exist, creating an instance of the target object and returning the instance of the target object to the method that was invoked on the reference object in response to the determining, wherein the target object comprises a home object; and if the target object does exist, returning the target object to the method that was invoked on the reference object in response to the determining. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A computer system comprising:
-
a processor; and a memory connected to the processor, wherein the memory is encoded with instructions, and wherein the instructions when executed on the processor comprise; receiving a request comprising a target object name and a target object information to create a target object from a client, in response to the request from the client to create the target object, creating a reference object from a class definition at the computer system, wherein the target object and the reference object are separate, in response to the creating the reference object, binding the reference object to a name space at the computer system, wherein the binding the reference object to the name space at the computer system is performed while the target object associated with the reference object is not instantiated, wherein the binding the reference object to the name space at the computer system while the target object associated with the reference object is not instantiated further comprises saving the target object name and a pointer in the name space, wherein the pointer is associated with the target object name, and wherein the pointer points to the reference object, in response to an invocation of a method at the client on the reference object, determining whether the target object associated with the reference object exists, wherein the client searches for the target object name and the pointer to the reference object in the name space using the target object name as an index into the name space, if the target object does not exist, creating an instance of the target object and returning the instance of the target object to the method that was invoked on the reference object in response to the determining, wherein the target object comprises a home object, and if the target object does exist, returning the target object to the method that was invoked on the reference object in response to the determining. - View Dependent Claims (7, 8, 9, 10)
-
Specification