Name

NamingContext

Synopsis

A NamingContext represents a naming directory structure, where objects are bound to unique branches, or names, in the naming directory. The full name that each object is given in the NamingContext must be unique. New branches in the naming directory are created by binding a NamingContext to a name within another, root NamingContext. The child context represents a sub-directory, or sub-context, within the parent context.

Objects are bound to names in a context by using the bind() and rebind() methods. The rebind() method allows you to reassign a name to another object, if it has already been bound. You can bind contexts using the bind_context(), bind_new_context() and rebind_context() methods. If you want to simply create a new context without binding it to a name, you can use the new_context() method. Bound objects in the context can be found using the resolve() method (for singular objects), and the list() method. The unbind() method lets you remove objects from their bindings in the context.

Objects can be bound to names in multiple NamingContexts at the same time. Their names within each context are independent. The same object can also be bound to multiple, different names in a single context.

                  
public interface NamingContext extends NamingContextOperations, org.omg.CORBA.Object, 
        org.omg.CORBA.portable.IDLEntity {
}

Implementations

_NamingContextImplBase ...

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.