• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

creational pattern and class diagram in part 2?

 
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am little unsure where can i use creational patterns in my solution approach.

In Part 2, if i try to base my solution on JSF technology then Model java object(POJO) will come presentation tier to business tier and with some additional information, i plan to persist the same.

So i am not sure, where the creational patterns will come in picture? Will they fit in presentation tier ? If yes how do i show in class diagram.

Second question - > My class diagram has gone little big as i am showing all the interfaces and implementation class which i am creating including utility class, persistence class, beans..etc. I know there is no line drawn like what all we need to show in class diagram..but is it ok to show all classes (except the JSPs and framework classes) in class diagram like till DAO layer.
 
deepak adlakha
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is anyone has any thoughts on this ?
 
Rancher
Posts: 152
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
IMHO, I wouldn't try to retrofit any design pattern into my class diagram. If it is not very obvious as to where the creational pattern is required, chances are it is not a good fit anyway in the class diagram.

Regarding the class diagram getting complex, the rule of thumb given by the authors for all diagrams is that for the complexity level of the provided assignment, a maximized browser window in a monitor at 1280 * 800 resolution should not need scroll bars. So if your diagram does not meet this test, you will probably have to optimize your class diagram and remove some low value classes/interfaces and retain only significant classes/interfaces etc.
 
deepak adlakha
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Teja.

Looks like if i am not fit the creational pattern in the class diagram somehow, then i will mention the same in assumptions and specify that its not shown in class diagram.
reply
    Bookmark Topic Watch Topic
  • New Topic