Creating reference objects
First Claim
1. A method comprising:
- receiving, at a server, a request comprising a target object name and a target object information to create a target object from a client, wherein the target object information comprises an identifier of an IP address of the client;
in response to the request from the client to create the target object, creating a reference object from a class definition at the server using the target object name and the target object information, 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 is performed while the target object associated with the reference object is not instantiated, wherein the binding the reference object to the name space further comprising creating a record and saving the name of the target object and a pointer into the record in the name space, wherein the pointer is associated with the name of the target object, 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 at the server, wherein the client searches for the record associated with the target object in the name space using the name of the target object as an index into the name space and the pointer to the reference object;
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;
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; and
returning the target object to an object request broker.
1 Assignment
0 Petitions
Accused Products
Abstract
A method, apparatus, system, and signal-bearing medium 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.
-
Citations
1 Claim
-
1. A method comprising:
-
receiving, at a server, a request comprising a target object name and a target object information to create a target object from a client, wherein the target object information comprises an identifier of an IP address of the client; in response to the request from the client to create the target object, creating a reference object from a class definition at the server using the target object name and the target object information, 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 is performed while the target object associated with the reference object is not instantiated, wherein the binding the reference object to the name space further comprising creating a record and saving the name of the target object and a pointer into the record in the name space, wherein the pointer is associated with the name of the target object, 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 at the server, wherein the client searches for the record associated with the target object in the name space using the name of the target object as an index into the name space and the pointer to the reference object; 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; 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; and returning the target object to an object request broker.
-
Specification