Abstract
In some situations it is desirable to save the state of a bean instance. For example, once we have set the properties on a Counter bean (for example by setting the Alarm bean message to “Egg-Timer” and providing a new icon for the Alarm bean) we might want to reuse this configuration many times. We do not want to have to reset the Alarm bean’s properties every time. So how do we manage this (remember that if you have purchased a bean from a bean vendor, you may not have access to its source code)? In JavaBeans this is achieved by serializing the bean; that is, storing the bean to a file in a format which allows it to be restored at a later stage. This chapter explains the concept of serialization and illustrates how it can be used with JavaBeans.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 1998 Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
Hunt, J. (1998). Bean Serialization. In: Essential JavaBeans fast. Essential Series. Springer, London. https://doi.org/10.1007/978-1-4471-0623-4_9
Download citation
DOI: https://doi.org/10.1007/978-1-4471-0623-4_9
Publisher Name: Springer, London
Print ISBN: 978-1-85233-032-3
Online ISBN: 978-1-4471-0623-4
eBook Packages: Springer Book Archive