Basic HTML version of Foils prepared May 19 1999

Foil 59 Holder Classes II

From CORBA Common Object Request Broker Architecture Basic Information Track Computational Science Course CPS616 -- Spring Semester 1999. by Geoffrey Fox, Wojtek Furmanski, Nancy McCracken, Chao-Wei Ou, Shrideep Pallickara


Each holder class has a constructor from an instance, a default constructor, and has a public instance member, value, which is the typed value.
The default constructor sets the value field to the default value for the type as defined by the Java language:
  • false for boolean, 0 for numeric and char types, null for strings, null for object references.
In order to support portable stubs and skeletons, holder classes for user defined types also have to implement the org.omg.CORBA.portable.Streamable interface.
The holder classes for the basic types are illustrated on next foil. Note that they do not implement the Streamable interface. They are in the org.omg.CORBA package.



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Mon Jul 5 1999