O'Reilly logo

JavaBeans Unleashed by Rick Leinecker, Dr. Donald Doherty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Persistence

Bean properties should remain the same until they are explicitly changed through a customization mechanism. For instance, once you change the OurButton bean's label property from press to Start Animation, you expect its value to remain as Start Animation unless you decide to change it again. This is known as persistence. JavaBeans make implementing persistent beans easy. It's mostly done for you. However, you'll need to be alert for those moments when you need to help out the JavaBeans automatic persistence mechanisms a little bit. Usually when this happens, you need to add some serialization code, which is code that saves or retrieves data from some permanent storage device.

Note

See Chapter 5, "Persistent Storage," to learn more ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required