Search
Feedback
Trail:
JavaBeans(TM)
The Java™ Tutorials
>
JavaBeans(TM)
Lesson: Using the BeanContext API
« Previous
•
TOC
•
Next »
Using the BeanContext API
Overview of the BeanContext API
Bean Context #1: Containment Only
Bean Context #2: Containment and Services
AWT Containers and the BeanContextProxy Interface
Overview
Purpose
Inheritance diagram of the BeanContext API
Bean Context #1: Containment Only
Containment Scenarios
Example 1
Example 2
Example 3
BeanContextMembershipEvent Notification
BeanContextMembershipEvent Notification: Sample Code
Bean Context #2: Containment and Services
Service Related Methods
Service Event Notification
The Service Provider
The Service
Sample Application: A Word Counting Service Example
DocumentBean.java
WordCountServiceProvider .java
WordCount.java
DocumentTester.java
Test.txt
Output
AWT Containers and the BeanContextProxy interface
Additional Resources
The Extensible Runtime Containment and Services Protocol
Specification
The
java.beans.beancontext
API documentation
« Previous
•
TOC
•
Next »
Copyright
1995-2006 Sun Microsystems, Inc. All rights reserved.
The Java Tutorials describe features that are new for Java SE 6.
Download JDK 6
.
Previous page:
Previous Lesson
Next page:
Overview of the BeanContext API