Java class generated after compiling IDL

xiaoxiao2021-03-06  80

Helper provides a useful assistant function for interface customers. The compiler automatically generates code for the Narrow feature, which allows customers to convert CORBA object reference to interface types. A binding (BIND) function is also provided, and the user can use it to find objects of this type.

The Holder contains a class of public instance members of the interface type. Users and servers communicate interface type objects in the form of OUT and INOUT parameters called by way.

Stub is a class that implements the client stub for the interface object, which is the internal implementation of the interface that provides the interface.

Operations defines the class of the IDL function.

TIE CORBA supports two types of programs: based on inheritance-based and delegation-based). The TIE class is only extended by POA, but it does not provide its own semantics. It entrusts all the work to an implementation object. Each TIE object stores a reference to an object. The entrustment method can use two classes to implement IDL interfaces: 1. One IDL generated TIE class, which inherits from POA, but entrusts all calls to an implementation class; 2. A class that implements the IDL generated Operations interface, it defines IDL Function.

POA implements the CORBA server-side framework for the interface. This class combines CORBA and Java object models. It is this by using a Java object that implements Java's org.omg.corba.Object interface. This is the CORBA root interface, and there is more CORBA objects that must be implemented.

转载请注明原文地址:https://www.9cbs.com/read-120875.html

New Post(0)