[Enterprise Extensions only]

Multiple IDL interfaces

A single IDL file can define multiple interfaces. When a file defines two or more interfaces that reference one another, forward declarations can be used to declare the name of an interface before it is defined. This is done as follows:

interface interfaceName ;

The actual definition of the interface for interfaceName must appear later in the same IDL file.

If multiple interfaces are defined in the same IDL file, they can be grouped into modules, by using the following syntax:

module moduleName { definition+ };

where each definition is a type declaration, constant declaration, exception declaration, interface statement or nested module statement. Modules are used to scope identifiers.

Alternatively, multiple interfaces can be defined in a single IDL file without using a module to group the interfaces. Whether a module is used for grouping multiple interfaces or not, the languages bindings produced from the IDL file will include support for all of the defined interfaces.