When a client compiles the IDL, this meta-type, as
well as others, are instantiated to contain appropriate information about the IDL application.
For instance, in the example of Section 2.4.2, when the IDL containing the
interfaces Account, CheckingAccount, and Bank is compiled, then three instances
of the meta-type InterfaceDef are created to store the details of each of these interfaces.
For the interface Account, for example, the instance of InterfaceDef will
record the following details: balance and name as attributes (instances of the metatype
AttributeDef, makeDeposit() and makeWithdrawal() as operations (instances of
the meta-type OperationDef). One of the advantages of storing the details of the interface
Account is being able to dynamically browse the details of this interface at
run-time. Users can look up the content of the interface repository and later be able
to check the new operations that are added to the interface.
đang được dịch, vui lòng đợi..