Interface stub generation directives

For IDL created by deploying EJB and PowerBuilder components, EASerer can embed specially formatted comments in IDL to control the generation of Java stubs for IDL interfaces and structures. These directives appear in a block comment located immediately before the IDL interface or struct declaration.

Imported class name This directive specifies that a structure or interface was imported from a Java class, and that a new version of the imported class must not be generated when stubs are generated. This directive is most commonly used for EJB home and remote interfaces and EJB primary keys that were defined by importing EJB classes or EJB-JAR files.

The format is:

** <!-- imported classname -->

Where classname is the Java class name, in dot notation. For example, foo.bar.MyBeanHome or foo.bar.MyBeanPrimaryKey.

Is home interface This directive identifies an interface as a home interface used by EJB clients and components. The format is:

** <!-- home -->

Finder method return type Applies to multi-object finder methods in an EJB entity bean’s home interface. If a finder method’s Java form must return java.util.Enumeration, you see a doc comment of this form above the IDL finder method declaration:

/*
** <!-- java.util.Enumeration -->
*/
::MyModule::MyRemoteList findByName(in string name);