aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Scea Part 2, general questions about UML class diagram Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Scea Part 2, general questions about UML class diagram" Watch "Scea Part 2, general questions about UML class diagram" New topic
Author

Scea Part 2, general questions about UML class diagram

Vadym Ba
Greenhorn

Joined: Apr 08, 2011
Posts: 29
I have 2 abstract questions concerning class diagrams

1) If I inject EJB to some class as a private filed, is it ok to show it in the class diagram like way

-@ejbObjectName EJBClassName

?

2) Should I show all the dependencies between class with dependency arrow and comments like (uses , have and so on) ?

It makes class diagram harder to read because of too many dependencies and arrows.

What is the best solution for that?

Thanks a lot


Yegor Bugayenko
Ranch Hand

Joined: Feb 11, 2011
Posts: 65
1) I don't think that such dependency is really an "attribute" of a class (in terms of UML). I would show it as an "aggregation".

2) The purpose of any UML diagram is not show "everything you can show". The purpose is to inform the reader about your architectural decision, at some certain level of abstraction. If all your dependencies belong to the same level of abstraction and you can't place them all into an easy-to-read UML diagram - it's a sign of poor design. Re-design your architecture for better cohesion and less coupling.


follow me at yegor256.com
Vadym Ba
Greenhorn

Joined: Apr 08, 2011
Posts: 29
I've found recently such discussion here

http://www.coderanch.com/t/529769/java-Architect-SCEA/certification/Annotations-class-diagram

so I think many approaches are correct
I will decide
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Scea Part 2, general questions about UML class diagram