Sun Java Solaris Communities My SDN Account Join SDN
 
Article

Sun Java Center - J2EE Patterns

 
 

Patterns

Players in the enterprise computing area, and particularly establishments using Java-based systems, have incorporated a number of terms and acronyms into their language. While many readers are certainly familiar with these terms, sometimes their use varies from one setting to another. To avoid misunderstandings and to keep things consistent, we define how we use these terms and acronyms.

Term Description/Definition Used in
BMP Bean managed persistence: a strategy for entity beans where the bean developer implements the persistence logic for entity beans. 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. In J2EE, business objects are implemented as session or entity beans. In some cases, a business object could be an arbitrary Java object that provides some service. Business tier patterns
CMP Container managed persistence: a strategy for entity beans where the container services transparently manage the persistence of entity beans. Business tier patterns
Composite A complex object that holds other objects. Also related to the Composite pattern described in the GoF book. (See GoF below.) Composite View, Aggregate Entity
Controller Interacts with a client, controlling and managing the handling of each request. Presentation tier patterns, Business Tier
Data Access Object An object that encapsulates and abstracts access to data from a persistent store or an external system. Business and Integration tier patterns
Delegate A stand-in for another component, an intermediate layer. A Delegate has qualities of a Proxy and Façade. Business Delegate and many other patterns
Dependent Object An object that does not exist by itself and whose lifecycle is managed by another object. Aggregate Entity pattern
Dispatcher Managing the choice of and dispatching to an appropriate View are some of the responsibilities of a Controller. This behavior may be partitioned into a separate component, referred to as a Dispatcher. Dispatcher View, Service To Worker
Enterprise Bean An instance of an Enterprise JavaBean component; can be a session or entity bean instance. When this term is used, it means that the bean instance can be either an entity or a session bean. Many places in this literature
Entity Bean Refers to an instance of an entity bean. May also refer collectively to the entity bean's home, remote object, bean implementation, or primary key objects. Many places in this literature
Façade A pattern to hide the complexities described in the Design Patterns book by Gamma et al. Session Façade pattern
Factory (Abstract Factory or Factory Method) Patterns described in the GoF book for creating objects or families of objects. Business tier patterns:Data Access Object, Value Object
Front Same as Controller. (The 'Front' name was introduced in the Sun J2EE Blueprints.) Presentation tier patterns
Iterator A pattern to provide collection facility described in the GoF book. Value List Handler
GoF Gang of Four--refers to the authors of the popular Design Patterns book (Gamma, Helm, Johnson, Vlissides) Many places in this literature
Helper Responsible for helping the Controller and/or View. For example, the Controller and View may delegate the following to a Helper: content retrieval, validation, storing the model or adapting it for use by the display. Presentation tier patterns, Business delegate
Independent Object An object that can exist by itself and may manage the lifecycles of its dependent objects. Aggregate Entity pattern
Locator An object that aids in locating service and business objects. Service Locator pattern
Model A physical or logical representation of the system or its sub-system. Presentation and Business tier patterns
Persistent Store Represents persistent storage systems such as RDBMS, ODBMS, a file system, and so forth. Business and Integration tier patterns
Scriptlet Application logic embedded directly within a JSP. Presentation tier patterns
Session Bean Refers to an instance of a session bean. May also refer collectively to the session bean's home, remote object, or bean implementation. Business tier patterns
Singleton A pattern that provides a single instance of an object, as described in the GoF book. Many places in this literature
Template Template text refers to the literal text encapsulated within a JSP View. Additionally, a template may refer to a specific layout of components in a display. Presentation tier patterns
Value Object An arbitrary Java object that is used to carry data from one object/tier to another. Usually does not contain any business methods. May be designed with public attributes or provided with get methods to obtain attribute values. Business tier patterns
View The view manages the graphics and text that make up the display. It interacts with Helpers to get data values with which to populate the display. Additionally, it may delegate activities, such as content retrieval, to its Helpers. Presentation tier patterns