Connection Observer

[ComponentDesignPatterns | CategoryPattern]

Context

Applicability

Problem

Forces

Solution

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.


DeletedUnlessDefended. This page has incomplete content and hasn't been touched since November 1998. Does someone want to take a crack at "finishing" it?
EditText of this page (last edited May 26, 2004)
FindPage by browsing or searching

This page mirrored in ComponentDesignPatterns as of April 29, 2006