The IDLjavaObject::Init function method instantiates the given Java object and establishes a link between the resulting IDL object with the underlying Java object.

Note: Init methods are special lifecycle methods, and as such cannot be called outside the context of object creation. This means that in most cases, you cannot call the Init method directly. There is one exception to this rule: the Init method can be called from within the Init method of a subclass.

Syntax


Obj = OBJ_NEW('IDLjavaObject$JAVACLASSNAME', JavaClassName[, Arg1, ...])

where JAVACLASSNAME is a case-insensitive string representing the Java class to be instantiated. All periods in JAVACLASSNAME must be converted to underscores.

Return Value


Returns an object reference to the newly-created object if initialization is successful, or a null object if initialization fails.

Arguments


JavaClassName

A string representing the Java class to be instantiated.

Arg1, ...

Additional arguments as required by the constructor. These arguments are passed to the underlying Java constructor. Arguments may be IDL primitive types, IDL strings, IDLJavaObjects, and arrays of the previous types.

Keywords


None

Version History


6.0

Introduced