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.