This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes class vs component diagram Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "class vs component diagram" Watch "class vs component diagram" New topic

class vs component diagram

Kazimierz Trzonek

Joined: Oct 08, 2008
Posts: 22
which classes from the class diagram i dont have to put in component diagram?

do i put interfaces or their implementations in componenet diagram?

which classes that arent on class diagram do i put on component diagram?

what are objects that i put into component diagram? are they classes from class diagram?

is eg security (implemented declarativly in web.xml) a component?

does component ~ class or component ~ package/functionality

which relationship line should connect service with dao on class diagram?

is there any sample solution of sample assignment? or any old assigment from sun?
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

So, I think you might want to start off by defining what a component diagram is. Do a google search and find some sample component diagrams, and find a good definition. Then share with us on this thread what you found out.

From the questions you're asking, it seems that you're really struggling with what a component diagram is. Components and classes are very different concepts.

-Cameron McKenzie
Kazimierz Trzonek

Joined: Oct 08, 2008
Posts: 22
best explenations I found:

Kazimierz Trzonek

Joined: Oct 08, 2008
Posts: 22
when do we use assembly line, and when normal arrows?

when one component displays an interface, and other uses it - than it's assembly?

but whan use line whith arrow?

shouldn't on below picture be used assebly connections? (picture from

on the picture from wiki assebly is used in internal dependencies of component, and arrows connect to external ports.

are ports equal to interfaces? name port is used in external context and interface in internal?
J J Wright
Ranch Hand

Joined: Jul 02, 2008
Posts: 254
Read the relevant section of the UML 2.x specification. It makes it quite clear what the various elements are for, the constraints that exist upon them, and the associations and attributes that characterise them

I agree. Here's the link:
subject: class vs component diagram
It's not a secret anymore!