Publisher: O'Reilly Media Released: June 1997 Pages: 320
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
|
-
Chapter 1 Introduction -
The Component Model -
The JavaBeans Architecture -
JavaBeans Overview -
Using Design Patterns -
JavaBeans vs. ActiveX -
Getting Started -
Chapter 2 Events -
The Java Event Model -
Events in the AWT Package -
Chapter 3 Event Adapters -
Demultiplexing -
Generic Adapters -
Event Adapters in the AWT Package -
Event Filtering -
Event Queuing -
Chapter 4 Properties -
Accessing Properties -
Indexed Properties -
Bound Properties -
Constrained Properties -
Handling Events for Specific Properties -
A java.awt Example -
Chapter 5 Persistence -
Object Serialization -
The java.io.Serializable Interface -
Class-Specific Serialization -
Walking the Class Hierarchy -
Serializing Event Listeners -
Versioning -
Object Validation -
The java.io.Externalizable Interface -
Instantiating Serialized Objects -
Chapter 6 JAR Files -
The jar Program -
The Manifest -
Using JAR Files with HTML -
Using JAR Files on the CLASSPATH -
Archive Signing -
An Alternative to the jar Program -
Chapter 7 The BeanBox Tool -
Running BeanBox -
Dropping Beans on BeanBox -
Editing a Bean’s Properties -
Hooking Up Beans -
Saving and Restoring the BeanBox Form -
Adding Your Own Beans to BeanBox -
Chapter 8 Putting It All Together -
Defining the Temperature Control Simulator -
Building the Simulator -
A Sample Simulator Applet -
Creating a JAR File -
Recreating the Sample Using BeanBox -
Chapter 9 Introspection -
The BeanInfo Interface -
Providing Additional BeanInfo Objects -
Introspecting the Environment -
The BeansBook.SimulatorBeanInfo Classes -
Chapter 10 Property Editors and Customizers -
Property Editors -
Customizers -
Chapter 11 ActiveX -
The JavaBeans ActiveX Bridge -
Technology Mapping -
Using Beans in Visual Basic -
Appendix 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 -
Appendix The java.beans Package -
Colophon |
- Title:
- Developing Java Beans
- By:
- Robert Englander
- Publisher:
- O'Reilly Media
- Formats:
-
- Print
- Safari Books Online
- Print:
- June 1997
- Pages:
- 320
- Print ISBN:
- 978-1-56592-289-1
- | ISBN 10:
- 1-56592-289-1
|
-
Robert Englander Robert Englander is Principal Engineer and President of MindStream Software, Inc. (www.mindstrm.com). He provides consulting services in software architecture, design, and development, as well as developing frameworks for use on client projects. His focus is in the areas of component architectures and distributed systems. Rob has built software in Java and C++ for clients ranging from small shops to large organizations. He has spoken at industry conferences, written articles for magazines and journals, and is the author of the OReilly book Developing Java Beans. View Robert Englander's full profile page. |
Colophon Edie Freedman designed the cover of this book, using an image she created and shot, then manipulated in Adobe Photoshop. The cover layout was produced with Quark XPress 3.3 using the Bodoni Black font from URW Software and BT Bodoni Bold Italic from Bitstream. The inside layout was designed by Nancy Priest and implemented by Mike Sierra in FrameMaker 5.0. The heading font is Bodoni BT; the text font is New Baskerville. The illustrations that appear in the book were created in Macromedia Freehand 5.0 by Chris Reilley and Robert Romano. Whenever possible, our books use RepKover, a durable and flexible lay-flat binding. If the page count exceeds RepKover's limit, perfect binding is used. |
|
Description
|
Table of Contents
|
Product Details
|
About the Author
|
Colophon
|
 |
|
 |
|
|
|
Recommended for You
|
Recently Viewed
|
 |
|
By Nathan Patwardhan, Ellen Siever, Stephen Spainhour
December 1998
By Tom Christiansen, Randal L. Schwartz
July 1997
By Peter Morville, Louis Rosenfeld
February 1998
|
Customer Reviews
1/30/2004 (1 of 1 customers found this review helpful) 5.0Developing Java Beans Review By Neil Anderson from Undisclosed 9/3/2002 1.0Developing Java Beans Review By Corey Cole from Undisclosed 2/2/2002 5.0Developing Java Beans Review By Robert Paris from Undisclosed 6/5/2001 4.0Developing Java Beans Review By Fabien Musolino from Undisclosed 5/31/2000 4.0Developing Java Beans Review By Carlos Alberto Albor Bula from Undisclosed
|
|
|