Java Mailing List Archive

http://www.junlu.com/

Google
Google
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
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Subject: Doubts on design patterns

Subject: Doubts on design patterns

2004-04-28       - By Ram Kishore

 Back
Reply:     1     2     3     4     5     6     7     8  

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&nbsp;my questions are, </SPAN></FONT></DIV></DIV>
<DIV><FONT face="Comic Sans MS"><FONT color=#0000ff><SPAN
class=225523408-27042004>1)&nbsp;Why&nbsp;</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)&nbsp;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>&nbsp;</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>&nbsp;</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>&nbsp;</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)

©2008 junlu.com - Jax Systems, LLC, U.S.A.