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


Service Locator

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

Problem

You want to transparently locate business components and services in a uniform manner.

Forces

Solution

Use a Service Locator to implement and encapsulate service and component lookup. A Service Locator hides the implementation details of the lookup mechanism and encapsulates related dependencies.

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 によって変換されたページ (->オリジナル) /