[Enterprise Extensions only]

NamingContext::resolve

Overview Retrieves an Object bound to a name.
Original interface CosNaming::NamingContext Interface
Exceptions CORBA standard exceptions and the following user exceptions:
  • CosNaming::NamingContext::CannotProceed
  • CosNaming::NamingContext::InvalidName
  • CosNaming::NamingContext::NotFound


Intended Usage

This operation is intended to be used by client applications. It is not typically overridden.

This operation retrieves the object bound to name name in the target naming context. The name name could be a simple name. In that case name should match exactly the name bound to the object in the context. Or, the name name could 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, in its super context, should match exactly the name component corresponding to this traversed context. The last name component of the compound name should match exactly 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.

IDL Syntax

  Object resolve(in CosNaming::Name name);

Input parameters

name
The name for the name-object binding.

Return values

Object
The name of the object bound to the supplied name.

Example

See the CosNaming Usage example for BindingIterator::destroy.