Repository inherits from interface Container and provides global access to the Interface Repository. It can be used to look up any definition (either defined in the global name space or within an interface or module) by name or id.A reference to a Repository object can be found by binding to it as follows:
// Java
Repository.Ref rv = Repository._bind(":IR", "");
// IDL
interface Repository : Container {
Contained lookup_id(
in RepositoryId search_id);
exception invalidLoad {string message; };
void loadIDLAll();
void loadIDLFile(in string fileName)
raises(invalidLoad);
};
Container
describe_contents() is inherited from interface Container. It returns a sequence of Container::Description structures; one such structure for each top level item in the repository. The structure is defined as:
// IDL
struct Description {
Contained contained_object;
Identifier name;
any value();
};
Each structure has the following members:
Container::describe_contents()
Contained lookup_id(in RepositoryId search_id);
Contained object (module, interface, typedef and so on) given its RepositoryId.
void loadIDLAll();
Repository::loadIDLFile()
void loadIDLFile(in string fileName) raises (invalidLoad);
fileName from the IR data directory. Note that the Interface Repository will load a file only once; attempts to re-load a file will be ignored.
invalidLoad if fileName does not exist.
Repository::loadIDLAll()