Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 The Software Craftsman this week in the Agile 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

Have you tried LearnNowOnline?
subject: class vs component diagram