Context
Applicability
Problem
Forces
Participants
Structure
Collaborations
Resulting Context
Consequences
Known Uses
Example
Implementation
Sample Code
Related Patterns
[Below is the original pattern and format used; currently we're morphing it to our standard form. -ed.]
Intent
To allow components to receive notification when connection-related events occur.
Motivation
Sometimes blah blah blah.
Therefore, blah blah blah.
We can solve this problem by applying the GangOfFour ObserverPattern. The Connection class is made into a subject that uses an Adapter to transform callback notification.
Related Patterns
ConnectionFlyweight, ConnectionSingleton
Known Uses
The IBM Data Access Beans that are part of VisualAge for Java 2.0 and the IBM WebSphere Application Server use Java Beans event notification to notify dependents when Connections are connected, disconnected, etc.
This page mirrored in ComponentDesignPatterns as of April 29, 2006