  | 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
|
|
|
  | | | Subject: Doubts on design patterns | Subject: Doubts on design patterns 2004-04-28 - By Ram Kishore
Back Hi all, I know design patterns are grouped into three types : Creational, Structural, and Behavioral. But my questions are, 1) Why State pattern is listed as behavioral, when it clearly defines some structure. 2) Why Proxy is listed as a Structural pattern when it clearly has behavior. 3) what is criteria for determining if a new pattern should be considered Structural or Behavioral? 4) what is main difference between Decorator and Chain Of Responsibility? Plz can anybody throw some light on the above points.Plz don't mention only definitions,that could be great if you can give valid reasons. Thanks and regards, Ram
==================================================================== 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)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <TITLE>Message</TITLE>
<STYLE><!-- body { font-family: Arial, Helvetica; font-size: 10pt; color: #000000; margin-top: 25px; margin-left: 25px; } P.msoNormal, LI.msoNormal { font -family: Helvetica, "Times New Roman"; font-size: 10pt; margin-top: 0px; margin-left: 0px; color: "#ffffcc"; } --> </STYLE>
<META content="MSHTML 5.50.4933.1800" name=GENERATOR></HEAD> <BODY background=cid:757234604@(protected)> <DIV> <DIV><FONT face="Comic Sans MS" color=#0000ff><SPAN class=225523408-27042004><SPAN class=757234604-28042004>Hi all,</SPAN></SPAN></FONT></DIV> <DIV><FONT face="Comic Sans MS"><FONT color=#0000ff><SPAN class=225523408-27042004>I know </SPAN><SPAN class=225523408-27042004>design </SPAN>patterns are grouped into three types : Creational, Structural, and Behavioral. </FONT></FONT></DIV> <DIV> <DIV><FONT face="Comic Sans MS" color=#0000ff><SPAN class=225523408-27042004>But my questions are, </SPAN></FONT></DIV></DIV> <DIV><FONT face="Comic Sans MS"><FONT color=#0000ff><SPAN class=225523408-27042004>1) Why </SPAN>State pattern is listed as behavioral, when it clearly defines some structure. </FONT></FONT></DIV> <DIV><FONT face="Comic Sans MS"><FONT color=#0000ff><SPAN class=225523408-27042004>2) Why</SPAN> Proxy is listed as a Structural pattern when it clearly has behavior. </FONT></FONT></DIV> <DIV><FONT face="Comic Sans MS"><FONT color=#0000ff><SPAN class=225523408-27042004>3) </SPAN><SPAN class=225523408-27042004>what is </SPAN>criteria for determining if a new pattern should be considered Structural or Behavioral<SPAN class=225523408-27042004>?</SPAN> </FONT></FONT></DIV> <DIV><SPAN class=225523408-27042004><FONT face="Comic Sans MS" color=#0000ff>4) what is main difference between Decorator and Chain Of Responsibility?</FONT></SPAN></DIV> <DIV><SPAN class=225523408-27042004><FONT face="Comic Sans MS" color=#0000ff></FONT></SPAN> </DIV> <DIV><SPAN class=225523408-27042004><SPAN class=757234604-28042004><FONT face="Comic Sans MS" color=#0000ff>Plz can anybody throw some light on the above points.Plz don't mention only definitions,that could be great if you can give valid reasons.</FONT></SPAN></SPAN></DIV> <DIV><SPAN class=225523408-27042004><SPAN class=757234604-28042004><FONT face="Comic Sans MS" color=#0000ff></FONT></SPAN></SPAN> </DIV> <DIV><FONT face="Comic Sans MS" color=#0000ff>Thanks and regards,</FONT></DIV> <DIV align=left><FONT face="Comic Sans MS" color=#0000ff>Ram </FONT></DIV><!-- |**|begin egp html banner|**| --></DIV> <DIV><FONT face="Comic Sans MS" color=#0000ff></FONT> </DIV></BODY></HTML> ==================================================================== 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)
|
|
 |