Vous êtes sur la page 1sur 1

J2EE PATTERNS

core

DEEPAK ALUR JOHN CRUPI DAN MALKS

2003, Cloth, 700 pages, 0-13-142246-4

Presentation Tier Patterns


Pattern Name Intercepting Filter Front Controller Context Object Application Controller View Helper Composite View Service To Worker Dispatcher View Synopsis Facilitates preprocessing and post-processing of a request Provides a centralized controller for request handling Encapsulates state in a protocol-independent way to be shared throughout your application. Centralizes and modularizes action and view management Separates processing logic from view Creates a composite view from subviews by separating content and layout management Invokes business processing prior to view processing Invokes view processing prior to business processing

Apply zero o more or o e

esentation-tier siness-tier egration-tier

Intercepting Filter Delegate Control Centralize Control Application Controller Front Controller Create t Dispatch to Dispatch to View ew target View Delegate processing to Help Helpers Context Object View Helper Create

Composite View

Compose View from Sub-Views uses Front Controller D Dispatch t to View

Dispatch h to View w Access s Business Service

Front Controller Control Processing

uses

Business Tier Patterns


Pattern Name Business Delegate Service Locator Session Facade Application Service Business Object Composite Entity Transfer Object Synopsis Encapsulates access to a business service Centralizes lookup logic for business services and components Exposes coarse-grained services to remote clients Aggregates behavior to provide a uniform service layer Encapsulates business data and logic Implements persistent business objects using entity beans Carries data across a tier

Lightweight Control Processing ightweight Dispatcher View Access Business Service Invoke Business Processing

Service To Worker Access ss Business Service

Application Service

Uses

Business Delegate Connect and Invoke

Locate Services

Service Locator

Transfer Object Assembler Assembles a transfer obejct from mutiple data sources Value List Handler Manages search and iteration of large set of results

Service Layers Coordinate Business Processing Invoke Business Processing

Delegate Business Processing g

Session Facade Facad de for List Send n Data

Transfer Object Assembles Model

Encapsulate and coordinate

Integration Tier Patterns


Pattern Name Data Access Object Service Activator Domain Store Web Service Broker Synopsis Abstracts and encapsulates access to persistent store Provides asynchronous access to one or more services Provides transparent persistence for business objects Exposes one or more services using XML and web protocols

Invoke Business Processing Transparently y Per Persist Service Activator Chain Asynchronous Processing Delegate e Asynchronous ous Processing g Web Service Broker uses

Business Object Value List Handler Implement Entity Beans Sen Send Data

uses

Composite Entity Retrieve Business List

Transfer Object Assembler uses Business Object

Domain Store Uses for Bean-managed anaged Persistence

Transfer Object Send Data

uses

Data Access Object

uses

www.phptr.com

Vous aimerez peut-être aussi