A wrapper is a class that provides an interface between object-oriented code and procedure-oriented code. Factory methods provide a convenient means for writing wrappers for existing procedural COBOL code to make it accessible from Java programs.
To wrap COBOL code, do these steps:
A Java program can invoke the factory method by using a static method invocation expression, thus invoking the COBOL procedural program.
related tasks
Defining a class
Defining a factory section
Defining a factory method