JavaBeans

JavaBeans are the simpler of the two types and an excellent starting point for our foray into persistence via XML.

Note

JavaBeans and Enterprise JavaBeans are complex enough topics without involving XML. This chapter should not be considered an in-depth discussion of either topic but rather a simple introduction to the important features that facilitate persisting and restoring a bean of either type using XML.

JavaBeans Architecture

Just what is a JavaBean? A JavaBean is a Java class that exposes properties, methods, and events in a certain predefined fashion. JavaBeans can be either visual, in which case they must extend one of the AWT classes such as Canvas, or simple classes that follow a set of conventions defining what methods ...

Get XML Development with Java™ 2 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.