Adapter object – FUJITSU J Adapter Class Generator User Manual

Page 15

Advertising
background image

Chapter 2. Adapter Class Generator Framework 15

Adapter Object

At execution time, an adapter class generates the adapter object corresponding to a

Java instance object. The adapter object:

Holds the pointer to the corresponding Java instance object.


• Calls the corresponding Java method of the corresponding Java instance object
Only the adapter object can be seen from the COBOL program. Every operation on

the adapter object is transmitted to the corresponding Java object. To the COBOL

program, , the adapter object seems as if it were a Java object. The adapter object,

since it works for the Java object, is also called a proxy object. The relationship

between the Java object and adapter object is shown below:

Figure 2.2. Java object and adapter object

Advertising