A framework based Java naming and lifecycle services system includes a
Moniker class which universally identifies an instance of any object
model, whether the instance exists or not. Moniker objects instantiated
from the Moniker class operate with a set of directory service classes
and object adapters to create a directory service framework and a
mechanism for connecting the directory service framework to existing
directory services. A set of runtime classes provide "in process"
services for objects. For example, the Moniker class is automatically
substituted for a client reference when the underlying object instance is
streamed or persisted. In accordance with one embodiment, life cycle
services are provided by associating a predefined policy with each
Moniker object, which policy specifies how and when life cycle services
should be performed. Remote objects are then created or bound in
accordance with these policies which eliminates the need for the client
to directly incorporate life cycle services code into its logic.