Learn Java for Web Development

(Tina Meador) #1

156 CHAPTER 3: Best Practices in Java EE Web Development


Front Controller

The front controller does the following:


   Centralizes request processing
 Delegates to the view using the dispatcher
 Uses a view helper to separate the business logic concerns with the
presentation logic concerns

Dispatcher

The dispatcher does the following:


   Is responsible for view management and navigation
 Delegates to the view
 Uses a helper to push data into the view

Helper

The helper does the following:


   Helps the view or the controller to complete its processing
 Pushes data into the view

Client Front
Controller Dispatcher View

Helper

delegates

View
Helper

uses

Figure 3-17. Service to Worker class diagram

Free download pdf