Chapter8.JavaBeans Components


Chapter 8. JavaBeans Components

  • Why Beans?

  • The Bean-Writing Process

  • Using Beans to Build an Application

  • Naming Patterns for Bean Properties and Events

  • Bean Property Types

  • Beaninfo Classes

  • Property Editors

  • Customizers

  • Javabeans Persistence

The official definition of a bean, as given in the JavaBeans specification, is: "A bean is a reusable software component based on Sun's JavaBeans specification that can be manipulated visually in a builder tool."

Once you implement a bean, others can use it in a builder environment such as NetBeans or JBuilder to produce GUI applications more efficiently.

We do not tell you in detail how to use those environmentsyou should refer to the documentation that the vendors provide. This chapter explains what you need to know about beans in order to implement them so that other programmers can use your beans easily.

NOTE

We'd like to address a common confusion before going any further: The JavaBeans that we discuss in this chapter have little in common with "Enterprise JavaBeans" or EJB. Enterprise JavaBeans are server-side components with support for transactions, persistence, replication, and security. At a very basic level, they too are components that can be manipulated in builder tools. However, the Enterprise JavaBeans technology is quite a bit more complex than the "Standard Edition" JavaBeans technology.

That does not mean that standard JavaBeans components are limited to client-side programming. Web technologies such as JavaServer Faces (JSF) and JavaServer Pages (JSP) rely heavily on the JavaBeans component model.




    Core JavaT 2 Volume II - Advanced Features
    Building an On Demand Computing Environment with IBM: How to Optimize Your Current Infrastructure for Today and Tomorrow (MaxFacts Guidebook series)
    ISBN: 193164411X
    EAN: 2147483647
    Year: 2003
    Pages: 156
    Authors: Jim Hoskins

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net