Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can components be shared in packages in component diagram

 
raj sirohi
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am struggling with component diagram, if I show packages containing components , can I have same components in two packages.

any help or thoughts will be highly appreciated.

thanks
Raj
 
raj sirohi
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no one there to help

Raj
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You realize it was the weekend, right?

I don't understand the question. Are you asking whether the a component can contain multiple packages? Or if you can have multiple components spread across the same multiple packages?
 
raj sirohi
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeanne,

Thanks for the reply.
my question is regarding the component diagram, I have been reading about component diagrams for the past one week and all the sources contradict the information.
In my component diagram I am showing packages which contain components, but these components are shared between packages, for example in presentation tier I have 3 packages each containing components, and I have two components which are in all three packages in paresentation tier. Is is ok to that components are shared between packages?

thanks a lot
Raj
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Raj,
I see. I'm not sure about the exam, but in life that does happen in small applications. In larger ones, the packages stay separate.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic