Basic HTML version of Foils prepared March 23 98

Foil 26 Serialization Externalization II

From JavaBeans and Use in ComponentWare Basic Information Track Computational Science Course CPS616 -- March 25 1998. by Nancy McCracken, Geoffrey C. Fox, Wojtek Furmanski


1 java.awt.Component class implements the Serializable interface and any bean extending this class or any of its subclasses is automatically Serializable and hence can be persistent
2 Note Object class is not Serializable and so one must inherit from a subclass of Object that is Serializable in order to automatically get this property
3 One can explicitly implement the Serializable Interface by supplying writeObject() and readObject()
4 Beans should store references to external Beans as transient as linkage is responsibility of BeanBox
5 Externalizable Objects must implement writeExternal() and readExternal() methods for user implemented persistency

in Table To:


© 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 Sun Nov 29 1998