I want to show the classes that are part of a component in a component diagram. For instance I have a component, named say my-service-client.jar that contains the local and/or remote business and home interfaces to my service. In addition I have another component that contains the bean's implementation. Now how can i model this relationship in a UML-2 component diagram?
I think you're misunderstanding the meaning of "Component", 1 class is not really a component... and certainly not it's interfaces, you could talk about the "Cash" component which could be a lot of classes which have some interfaces to the "external" world and not even have a Cash class on it.
So, if you have a component which will lead with the banking communication it could have socket classes, bean with the implementation, some interfaces and some other utilities, this group could be named as "BankingComponent" and will be drawn as 1 component.
Joined: Nov 07, 2007
Juan , thanks for your reply, but some people are still working on SCEA 2, and I do understand the meaning of a component, I'd like to express which classes make up a component. I have class diagrams that express the relations between the several classes that make up my solution, but then I have component diagrams that show the relations between the components that the solution is divided in. These components are only useful if they contain some classes or other artefact's, hence my question, how do I show which classes make up my components?