Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Component Diagram Questions

 
Sanz Vai
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Is it necessary to show value objects in component diagram (two many of them and they clutter the diagram)
2. Cade's book shows all links among components as dependencies (dotted lines). Is this the only possible relationship? And do we have to name the relationships as it is done in class diagram? (Cade doesn't name them in the book eg.)
 
Ramon Gill
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sanz,
1. VO's are not meant to be used in component diagrams. They are useful in sequence diagrams.
2. I have never seen anything but dependencies amongst components. Remember that most components have a facade as a link to the outside world. This facade will only ever be a dependency, as it delegates work to other classes in the package.

Ray
SCJP, SCWCD, SCBCD, SCEA (part 1), IBM-484, IBM-486
 
Sanz Vai
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ramon. And how about naming the dependencies in Component Diagram?
 
Ramon Gill
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sanz,
I've just checked Cade, Fowler and 'UML User Guide' to confirm . You do not name the dependencies in a component diagram.

Ray
SCJP, SCWCD, SCBCD, SCEA (part 1), IBM-484, IBM-486
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic