Core J2EE Patterns

©

Presentation Tier

Business Tier

Integration Tier


Core J2EE Pattern Catalog

© CoreJ2EEPatterns
All Rights Reserved.

Last Updated:
January 29, 2006 8:54 PM

In Association with Amazon.com


Context Object

See Core J2EE Patterns, 2nd Edition for full description of this pattern and its strategies.

Problem

You want to avoid using protocol-specific system information outside of its relevant context.

Forces

Solution

Use a Context Object to encapsulate state in a protocol-independent way to be shared throughout your application.

Class Diagram

Sequence Diagram

Strategies

Consequences

Related Patterns

Excerpted from Core J2EE Patterns, 2nd Edition. See the book for full description of the pattern including class diagrams, sequence diagrams and sample code.

Contact Us © CoreJ2EEPatterns.com. All Rights Reserved. Terms of use

AltStyle によって変換されたページ (->オリジナル) /