Cameron Wallace McKenzie wrote:Definitely.
Cameron Wallace McKenzie wrote:Google "Front Controller" and you will find many discussions on this particular pattern.
Front Controller Design Pattern
The easiest way to implement this is to simply say you are using Sun's JSF framework. The JSF framework provides its own Front Controller, the FacesServlet. Just say your application will be using this Servlet as your front controller, and you're done.
Based on the Command pattern [GoF], the Command and Controller Strategy suggests providing a generic interface to the helper components to which the controller may delegate responsibility, minimizing the coupling among these components (see "View Helper" on page 33 for more information on helper components). Adding to or changing the work that needs to be completed by these helpers does not require any changes to the interface between the controller and the helpers, but rather to the type and/or content of the commands. This provides a flexible and easily extensible mechanism for developers to add request handling behaviors.
Cameron Wallace McKenzie wrote:It looks to me like the controller class is invoking a manager class.
Please quote your sources. If this is from an authors copyrighted work, posting it here may very well be a copyright violation.