Cover Page by Gary Cornell, Cay S. Horstmann

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

O'Reilly logo

8.2. The Bean-Writing Process

Writing a bean is not technically difficult—there are only a few new classes and interfaces for you to master. In particular, the simplest kind of a bean is nothing more than a Java class that follows some fairly strict naming conventions for its methods.

Image Note

Some authors claim that a bean must have a no-argument constructor. The JavaBeans specification is actually silent on this issue. However, some builder tools do require a no-argument constructor for each bean.

Listing 8.1 at the end of this section shows the code for an ImageViewer bean that could give a Java builder environment the same functionality as ...

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