Previous Table of Contents Next


4.3.1 Determining the Object Interface


   4.3.1.1 get_interface

   InterfaceDef get_interface();

   get_interface, returns an object in the Interface Repository that describes the most derived type of the object addressed by the reference. See the Interface Repository chapter for a definition of operations on the Interface Repository. The implementation of this operation may involve contacting the ORB that implements the target object.

   If the interface repository is not available, get_interface raises INTF_REPOS with standard minor code 1. If the interface repository does not contain an entry for the object's (most derived) interface, get_interface raises INTF_REPOS with standard minor code 2.

   4.3.1.2 repository_id

   repository_id returns the repository ID of an object (see Section 10.6, “Component Interface Repository Interfaces? on page 10-50 for details of repository IDs). The implementation of this operation must contact the ORB that implements the target object.