Book description
Java Beans is the most important new development in Java this year. Beans is the next generation of Java technology that not only adds features the language lacked, but also lets Java programs interoperate with a number of development environments. The initial release includes a bridge for Microsoft's ActiveX/COM; future releases will include bridges for Netscape's LiveConnect and IBM's OpenDoc. Since it's a "component architecture" for Java, Beans can be used in graphical programming environments, like Borland's JBuilder, or IBM's VisualAge for Java. This means that someone can use a graphical tool to connect a lot of Beans together and make an application, without actually writing any Java code -- in fact, without doing any programming at all. Graphical development environments let you configure components by specifying aspects of their visual appearance (like the color or label of a button) in addition to the interactions between components (what happens when you click on a button or select a menu item). One important aspect of Java Beans is that components don't have to be visible. This sounds like a minor distinction, but it's very important: the invisible parts of an application are the parts that do the work. So, for example, in addition to manipulating graphical widgets, like checkboxes and menus, Beans allows you to develop and manipulate components that do database access, perform computations, and so on. You can build entire applications by connecting pre-built components, without writing any code. Developing Java Beans is for people who need to stay up-to-date with the latest developments in programming technology. Minimally, developing Beans means adopting several simple design patterns in your code. However, that's only the beginning. To take full advantage of the Java Beans architecture, you should understand how to write classes that are serializable, use events for communication between classes, know when and how to provide BeanInfo classes that give graphical environments more information about your components, and provide property editors and customizers that let graphical tools work with more complex Beans. The book covers:
Events, event listeners, and adapters
Properties, indexed properties, bound properties, constrained properties, and vetoable property changes
Persistence, serialization, versioning, and object validation
Packaging Beans using JAR files
The BeanBox, a prototypical development tool
Reflection and introspection
Property editors and customizers
The ActiveX bridge; using Java Beans in Visual Basic programs
Publisher resources
Table of contents
-
Developing Java Beans
- Dedication
- Preface
- 1. Introduction
- 2. Events
- 3. Event Adapters
- 4. Properties
- 5. Persistence
- 6. JAR Files
- 7. The BeanBox Tool
- 8. Putting It All Together
- 9. Introspection
- 10. Property Editors and Customizers
- 11. ActiveX
-
A. Design Patterns
- Event Objects
- Event Listeners
- Registering for Event Notification
- Registering for Unicast Event Notification
- Multiple Parameter Event Methods
- Property Access Methods
- Indexed Property Access Methods
- Constrained Property Access Methods
- Registering for Bound and Constrained Property Event Notifications
- Naming a BeanInfo Class
-
B. The java.beans Package
- Class java.beans.BeanDescriptor
- Interface java.beans.BeanInfo
- Class java.beans.Beans
- Interface java.beans.Customizer
- Class java.beans.EventSetDescriptor
- Class java.beans.FeatureDescriptor
- Class java.beans.IndexedPropertyDescriptor
- Class java.beans.IntrospectionException
- Class java.beans.Introspector
- Class java.beans.MethodDescriptor
- Class java.beans.ParameterDescriptor
- Class java.beans.PropertyChangeEvent
- Interface java.beans.PropertyChangeListener
- Class java.beans.PropertyChangeSupport
- Class java.beans.PropertyDescriptor
- Interface java.beans.PropertyEditor
- Class java.beans.PropertyEditorManager
- Class java.beans.PropertyEditorSupport
- Class java.beans.PropertyVetoException
- Class java.beans.SimpleBeanInfo
- Interface java.beans.VetoableChangeListener
- Class java.beans.VetoableChangeSupport
- Interface java.beans.Visibility
- Index
- Colophon
Product information
- Title: Developing Java Beans
- Author(s):
- Release date: June 1997
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781565922891
You might also like
book
Designing Data-Intensive Applications
Data is at the center of many challenges in system design today. Difficult issues need to …
book
Clean Code: A Handbook of Agile Software Craftsmanship
Even bad code can function. But if code isn’t clean, it can bring a development organization …
book
Clean Architecture: A Craftsman's Guide to Software Structure and Design
Building upon the success of best-sellers The Clean Coder and Clean Code, legendary software craftsman Robert …
book
Netty in Action
Netty in Action introduces the Netty framework and shows you how to incorporate it into your …