This is the object that defines name scopes, names must be unique within a naming context. Objects may have multiple names and may exist in multiple naming contexts. Name context may be named in other contexts and cycles are permitted.
The type
-record('CosNaming_NameComponent', {id, kind=""}).
where
The type
-record('CosNaming_Binding', {binding_name, binding_type}).
where
Both these records are defined in the file
-include_lib("orber/COSS/CosNaming/CosNaming.hrl").
There are a number of exceptions that can be returned from functions in this interface.
NotFound is defined as
-record('CosNaming_NamingContext_NotFound',
{rest_of_name, why}).
CannotProceed is defined as
-record('CosNaming_NamingContext_CannotProceed',
{rest_of_name, cxt}).
InvalidName is defined as
-record('CosNaming_NamingContext_InvalidName', {}).
NotFound is defined as
-record('CosNaming_NamingContext_NotFound', {}).
AlreadyBound is defined as
-record('CosNaming_NamingContext_AlreadyBound', {}).
NotEmpty is defined as
-record('CosNaming_NamingContext_NotEmpty', {).
These exceptions are defined in the file
-include_lib("orber/COSS/CosNaming/CosNaming_NamingContext.hrl").
Creates a binding of a name and an object in the naming context. Naming contexts that are bound using bind() do not participate in name resolution.
Creates a binding of a name and an object in the naming context even if the name is already bound. Naming contexts that are bound using rebind() do not participate in name resolution.
The bind_context function creates a binding of a name and a naming context in the current context. Naming contexts that are bound using bind_context() participate in name resolution.
The rebind_context function creates a binding of a name and a naming context in the current context even if the name already is bound. Naming contexts that are bound using rebind_context() participate in name resolution.
The resolve function is the way to retrieve an object bound to a name in the naming context. The given name must match exactly the bound name. The type of the object is not returned, clients are responsible for narrowing the object to the correct type.
The unbind operation removes a name binding from the naming context.
The new_context operation creates a new naming context.
The new_context operation creates a new naming context and binds it to Name in the current context.
The destroy operation disposes the NamingContext object and removes it from the name server. The context must be empty e.g. not contain any bindings to be removed.
The list operation returns a BindingList with a number of bindings up-to
HowMany from the context. It also returns a BindinIterator which can be used to
step through the list. If the total number of existing bindings are less
than, or equal to, the
One must destroy the BindingIterator, unless it is a NIL object reference, by using 'BindingIterator':destroy(). Otherwise one can get dangling objects.