| Author |
cycles in dependency structure
|
Ram Kondawar
Ranch Hand
Joined: May 29, 2001
Posts: 42
|
|
Hello Friends Can somebody explain the following from Martin Fowler page 112, last 2 lines.
Putting abstract classes in supertype package is good way of breaking cycles in the dependency structure
what are these cycles being referred ? Thanks Ram Kondawar [This message has been edited by Ram Kondawar (edited June 12, 2001).] [This message has been edited by Ram Kondawar (edited June 12, 2001).] [This message has been edited by Ram Kondawar (edited June 12, 2001).]
|
 |
Ram Kondawar
Ranch Hand
Joined: May 29, 2001
Posts: 42
|
|
|
I am sorry for the font size, it was a typo error
|
 |
Johannes de Jong
tumbleweed
Bartender
Joined: Jan 27, 2001
Posts: 5087
|
|
You can edit your posting by pressing the button.
|
 |
Ram Kondawar
Ranch Hand
Joined: May 29, 2001
Posts: 42
|
|
Thank you Johannes . I did edit the message. Ram Kondawar
|
 |
Desai Sandeep
Ranch Hand
Joined: Apr 02, 2001
Posts: 1157
|
|
Hi, This is based on Indirection Pattern. By keeping supertype abstract, the class which sends the message to the supertype doesn't know about the type of object (subtype) it is refering to until runtime.Since, the sender class is not directly coupled with the subtype, the temporary visibility (local or parameter) of the subtype is broken by indirection. Since dependency relates to above types of visibility,we have reduced the dependency cycles between classes by allowing the abstract supertype to talk to its subtype. Hope this helps, Sandeep [This message has been edited by Desai Sandeep (edited June 12, 2001).]
|
<b>Sandeep</b> <br /> <br /><b>Sun Certified Programmer for Java 2 Platform</b><br /> <br /><b>Oracle Certified Solution Developer - JDeveloper</b><br /><b>-- Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java </b><br /><b>-- Object-Oriented Analysis and Design with UML</b><br /> <br /><b>Oracle Certified Enterprise Developer - Oracle Internet Platform</b><br /><b>-- Enterprise Connectivity with J2EE </b><br /><b>-- Enterprise Development on the Oracle Internet Platform </b>
|
 |
Ram Kondawar
Ranch Hand
Joined: May 29, 2001
Posts: 42
|
|
Thanks Sandeep This has definitely cleared my doubt.Till I had read your message , I was wondering how the dependency of subtype on supertype reduces by putting abstract supertype in separate package. Thanks Ram
|
 |
 |
|
|
subject: cycles in dependency structure
|
|
|