Tuesday, August 16, 2011

Enterprise Design Pattern

Design patterns which are used mostly for Enterprise Application Architecture areknown as Enterprise Design Pattern.Enterprise Design patterns are introduced in Core J2EE Patterns, the patterns deal with presentation, and application logic.

Examples of Enterprise Design Pattern:

Base Patterns
  • Command: An object encapsulates everything needed to execute a method in another object
  • Registry: This pattern is useful for making data available to all classes in a process.Through careful use of serialization, it can also be used to store information across a session or even across instances of an application.
Web Presentation Patterns:
  • Front Controller: A controller that handles all requests for a Web site.
  • Application Controller: A centralized point for handling screen navigation and the flow of an application
  • Template View: Renders information into HTML by embedding markers in an HTML page.
  • Page Controller: An object that handles a request for a specific page or action on a Web site. Lighter weight but less flexible than Front Controller, Page Controller addresses the same need. Use this pattern to manage requests and handle view logic if you want fast results and your system is unlikely to grow substantially in complexity.
Domain Logic Patterns
  • Transaction Script: When you want to get things done fast, with minimal up-front planning, fall back on procedural library code for your application logic. This pattern does not scale well. This pattern Organizes business logic by procedures where each procedure handles a single request from the presentation.
  • Domain Model: An object model of the domain that incorporates both behavior and data.
Source: From lecture notes of Design and Development Open Multi-tier Application