Professional Documents
Culture Documents
Analyse, Conception
¾Mis en place par SUN pour aider les
Objet développeurs à concevoir des applications en
utilisant la technologie J2EE.
¾Au nombre de 15, ils regroupent les meilleures
J2EE Patterns pratiques de la technologie J2EE
¾Distinction de 3 catégories distinctes
correspondant aux niveaux présentation, métier,
intégration d’une application
¾ http://java.sun.com/blueprints/patterns/index.html
O. Boissier, SMA/G2I/ENS Mines Saint-Etienne, Olivier.Boissier@emse.fr, Avril 2004
2
Pattern de niveau
Intégration Relations entre les patterns
7 8
Vision Framework des
Patterns Terminologie
¾ BMP
- Bean managed persistence: a strategy for entity beans
where the bean developer implements the persistence logic
for entity beans.
- used in: Business tier patterns
¾ Business Object
- An object that implements business logic and/or business
data. Business data and business logic are implemented in
coarse-grained objects called Business Objects.
- used in:Business tier patterns
¾ CMP
- Container managed persistence: a strategy for entity beans
where the container services transparently manage the
persistence of entity beans.
- used in: Business tier patterns
¾ Composite
- A complex object that holds other objects.
- used in: Composite View, Aggregate Entity
Source: Sun Java Center J2EE Patterns 9 10
Terminologie Terminologie
¾ Controller ¾ Dispatcher
- Interacts with a client, controlling and managing the - Managing the choice of and dispatching to an appropriate
handling of each request. View are some of the responsibilities of a Controller.
- used in: Presentation tier patterns, Business Tier - used in: Dispatcher View, Service To Worker
¾ Enterprise Bean
¾ Data Access Object
- An instance of an Enterprise JavaBean component; can be
- An object that encapsulates and abstracts access to data a session or entity bean instance.
from a persistent store or an external system. - used in many places in this literature
- used in Business and Integration tier patterns ¾ Entity Bean
¾ Delegate - Refers to an instance of an entity bean. May also refer
- A stand-in for another component, an intermediate layer. collectively to the entity bean's home, remote object, bean
A Delegate has qualities of a Proxy and Façade. implementation, or primary key objects.
- used in: Business Delegate and many other patterns - used in many places in this literature
¾ Dependent Object ¾ Façade
- A pattern to hide the complexities described in the Design
- An object that does not exist by itself and whose lifecycle
Patterns book by Gamma et al.
is managed by another object. - used in: Session Façade pattern
- used in: Aggregate Entity pattern
11 12
Terminologie Terminologie
¾ Factory (Abstract Factory or Factory Method) ¾ Helper
- Patterns described in the GoF book for creating objects or - Responsible for helping the Controller and/or View.
families of objects. - used in: Presentation tier patterns, Business delegate
- used in: Business tier patterns:Data Access Object, Value ¾ Independent Object
Object - An object that can exist by itself and may manage the
lifecycles of its dependent objects.
¾ Front - used in: Aggregate Entity pattern
- Same as Controller.
¾ Locator
- used in: Presentation tier patterns - An object that aids in locating service and business objects.
¾ Iterator - used in: Service Locator pattern
- A pattern to provide collection facility described in the GoF ¾ Model
book. - A physical or logical representation of the system or its
- used in: Value List Handler sub-system.
¾ GoF - used in: Presentation and Business tier patterns
- Gang of Four--refers to the authors of the popular Design ¾ Persistent Store
Patterns book (Gamma, Helm, Johnson, Vlissides) - Represents persistent storage systems such as RDBMS,
ODBMS, a file system, and so forth.
- used in many places in this literature
- used in: Business and Integration tier patterns
13 14
15 16