import "CosNaming.idl";
Inheritance diagram for CosNaming::NamingContext:
Public Types | |
enum | NotFoundReason { missing_node, not_context, not_object } |
Public Member Functions | |
void | bind (in Name n, in Object obj) raises (NotFound, CannotProceed, InvalidName, AlreadyBound) |
void | rebind (in Name n, in Object obj) raises (NotFound, CannotProceed, InvalidName) |
void | bind_context (in Name n, in NamingContext nc) raises (NotFound, CannotProceed, InvalidName, AlreadyBound) |
void | rebind_context (in Name n, in NamingContext nc) raises (NotFound, CannotProceed, InvalidName) |
Object | resolve (in Name n) raises (NotFound, CannotProceed, InvalidName) |
void | unbind (in Name n) raises (NotFound, CannotProceed, InvalidName) |
NamingContext | new_context () |
NamingContext | bind_new_context (in Name n) raises (NotFound, AlreadyBound, CannotProceed, InvalidName) |
void | destroy () raises (NotEmpty) |
void | list (in unsigned long how_many, out BindingList bl, out BindingIterator bi) |
Definition at line 75 of file CosNaming.idl.
|
Definition at line 79 of file CosNaming.idl.
00080 { 00081 missing_node, 00082 not_context, 00083 not_object 00084 }; |
|
Create a binding for name and object in the naming context. Compound names are treated as follows: ctx->bind (<c1; c2; c3; cn>, obj) = (ctx->resolve (<c1; c2; cn-1>))->bind (, obj) if the there already exists a binding for the specified name, exception is thrown. Naming contexts should be bound using and in order to participate in name resolution later. |
|
This is the version of specifically for binding naming contexts, so that they will participate in name resolution when compound names are passed to be resolved. |
|
This operation creates a new context and binds it to the name supplied as an argument. The newly-created context is implemented by the same server as the context in which it was bound (the name argument excluding the last component). |
|
Delete the naming context. NOTE: the user should any bindings in which the given context is bound to some names before invoking operation on it. |
|
Returns at most the requested number of bindings how_many in bl. If the naming context contains additional bindings, they are returned with a BindingIterator. In the naming context does not contain any additional bindings bi returned as null. |
|
This operation returns a new naming context implemented by the same naming server in which the operation was invoked. The context is not bound. |
|
This is similar to operation above, except for when the binding for the specified name already exists in the specified context. In that case, the existing binding is replaced with the new one. |
|
This is a version of specifically for naming contexts, so that they can participate in name resolution when compound names are passed. |
|
Return object reference that is bound to the name. Compound name resolve is defined as follows: ctx->resolve (<c1; c2; cn>) = ctx->resolve (<c1; c2 cn-1>)->resolve () The naming service does not return the type of the object. Clients are responsible for "narrowing" the object to the appropriate type. |
|
Remove the name binding from the context. When compound names are used, unbind is defined as follows: ctx->unbind (<c1; c2; cn>) = (ctx->resolve (<c1; c2; cn-1>))->unbind () |