Overview | Retrieves an Object bound to a name. |
Original interface | CosNaming::NamingContext Interface |
Exceptions | CORBA
standard exceptions and the following user exceptions:
|
Intended Usage
This operation is used by client applications. It is not typically overridden.
This operation retrieves the object bound to a name in the target naming context. The name can be a simple name. If so, the name should match the name bound to the object in the context. The name also can be a compound name that spans multiple contexts. In this case, name resolution traverses multiple contexts. At each context traversed, the name bound to this context should match the name component corresponding to the traversed context. The last name component of the compound name should match the name bound to the object in the last traversed naming context.
The type of the returned object is not provided. Clients are responsible for "narrowing" the object to the appropriate type. Clients typically cast the returned object to a more specialized interface.
Syntax
Object resolve(in CosNaming::Name name);
Input parameters
Return values
Example
See the CosNaming Usage example for BindingIterator::destroy.