Multiple IDL interfaces

A single Interface Definition Language (IDL) file can define multiple interfaces. When a file defines two or more interfaces that reference one another, forward declarations are 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 or not a module is used for grouping multiple interfaces, the language bindings produced from the IDL file include support for all of the defined interfaces.


Related concepts
Interface Definition Language (IDL)



Searchable topic ID:   rcor_idlmul
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/corba/ref/rcor_idlmul.html

Library | Support | Terms of Use | Feedback