Monday, February 8, 2010

J2EE DESIGN PATTERNS

There are a number of patterns that have been identified by the Sun Java Center for the presentation tier.

  1. Intercepting Filter : Facilitates preprocessing and post-processing of a request. more
  2. Front Controller : Provides a centralized controller for managing the handling of requests. more
  3. Composite View : Creates an aggregate View from atomic subcomponents. more
  4. View Helper : Encapsulates logic that is not related to presentation formatting into Helper components.
  5. Dispatcher View : Combines a Dispatcher component with the Front Controller and View Helper patterns, deferring many activities to View processing.
  6. Service to Worker :Combines a Dispatcher component with the Front Controller and View Helper patterns.
  7. Business Delegate :Reduces coupling between presentation-tier clients and business services. It hides the underlying implementation details of the business service, such as lookup and access details of the EJB architecture. more
  8. Session Facade : Encapsulate the complexity of interactions between the business objects participating in a workflow. The Session Facade manages the business objects, and provides a uniform coarse-grained service access layer to clients.
  9. Service Locator : Multiple clients can reuse the Service Locator object to reduce code complexity, provide a single point of control, and improve performance by providing a caching facility.
  10. Transfer Object Assembler : It is used to build the required model or submodel. The Transfer Object Assembler uses Transfer Objects to retrieve data from various business objects and other objects that define the model or part of the model.
  11. Value List Handler :The most critical concern in a distributed paradigm is the latency time. Value List Handler Pattern suggests an alternate approach of using ejb-finder methods. The pattern is used to control the search, cache the results and provide the results to the client using a lightweight mechanism.
  12. Composite Entity :It model, represent, and manage a set of interrelated persistent objects rather than representing them as individual fine-grained entity beans. A Composite Entity bean represents a graph of objects.
  13. Transfer Object or Value Object :Encapsulate the business data. A single method call is used to send and retrieve the Transfer Object. When the client requests the enterprise bean for the business data, the enterprise bean can construct the Transfer Object, populate it with its attribute values, and pass it by value to the client. more
  14. Service Activator :Service Activator enables asynchronous access to enterprise beans and other business services. It receive asynchronous client requests and messages. On receiving a message, the Service Activator locates and invokes the necessary business methods on the business service components to fulfill the request asynchronously. In EJB2.0, Message Driven beans can be used to implement Service Activator for message based enterprise applications. The Service Activator is a JMS Listener and delegation service that creates a message façade for the EJBs.
  15. Data Access Object : Abstracts and encapsulate all access to the data source. The DAO manages the connection with the data source to obtain and store data. more

No comments:

Post a Comment