JavaBeans and XML

Just what are JavaBeans in the first place? (Those of you who are familiar with JavaBeans may want to skip forward.) JavaBeans are, in their simplest form, classes that contain certain patterns or signatures of methods. But JavaBeans are much more than simple classes; they are classes that implement the concept of a component. And what is a component? A component is best described by listing its characteristics:

  • Components are reusable.

  • Components require little effort to use on the part of the application developer.

  • Components allow for rapid prototyping.

  • Components often support visual programming and the drag-and-drop paradigm.

JavaBeans go a step further than simple components and have a number of additional benefits.

JavaBeans ...

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.