The JavaTM Tutorial

| Start of Tutorial > Start of Trail | Search Feedback Form

Trail: JavaBeans(TM)

## Lesson: Using the BeanContext API

### by Scott A. Hommel

- 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

| Start of Tutorial > Start of Trail | Search Feedback Form