Java Helper and Holder Types

This section describes the templates that are used by an IDL to Java compiler to generate Java Helper and Holder types from a given user-defined IDL type.

Helper Types

Helper types are provided only for user-defined types. The purpose of a Helper class is to provide miscellaneous, typed Java methods that support the use of the user-defined type.

For each user-defined type, <user_type>, a Helper class, <user_type>Helper, is generated in accordance with the following template:

//Java
// Helper class for non-boxed value types.

abstract public class <user_type>Helper {
    public static void insert(org.omg.CORBA.Any a, <user_type> t) {...}
    public static <user_type> extract(Any a) {...} public static org.omg.CORBA.TypeCode ...

Get Pure CORBA now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.