  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Command Pattern in FrontController and ApplicationController | Command Pattern in FrontController and ApplicationController 2005-07-06 - By unmesh joshi
Back
Hi,
Both Front and ApplicationController patterns are illustrated to use Command patterns for request handlers. That design is clear and it follows 'Single Responsibility Principle". But I have seen some designs in my recent project where instead of Command Objects, request handling is done in private methods. Can you please given me disadvantages of using this type of methods instead of command objects?
Thanks,
Unmesh
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected) <DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER -LEFT: #1010ff 2px solid"> <P>Hi,</P> <P>Both Front and ApplicationController patterns are illustrated to use Command patterns for request handlers. That design is clear and it follows 'Single Responsibility Principle". But I have seen some designs in my recent project where instead of Command Objects, request handling is done in private methods. Can you please given me disadvantages of using this type of methods instead of command objects?</P> <P>Thanks,</P> <P>Unmesh<BR></P></BLOCKQUOTE></DIV><p>__ ____ ____ ____ ____ ____ ____ ____ __ __ ____ __<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com ==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
|
|
 |