• Post Reply Bookmark Topic Watch Topic
  • New Topic

SCEA Part II - Design Question

 
Pramod Patidar
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Gurus,

According to one of the design principles
"Program to interfaces, not implementations"

1. I am wondering what is the best place to show interfaces, is it class diagram or component diagram?

2. Also if we follow above principle does that mean that our architecture should only show interfaces?

Appreciate your response.

Pramod.
 
mc khan
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to me, the best place to show interfaces is the class diagram. A component diagram is a combination of interface(s) and implementation(s) that are glued cohesively to provide a piece of functionality, eg, EJB.

Thanks,
-Maqbool.
 
Pratik Das
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes class diagram is the best place to show interfaces. But here you are talking of SCEA. If you see Mark Cade, there are no interfaces in the class diagram and not even DAOfactory and DAO classes. But DAO is in the sequence diagram.I am also facing the same dilemma as yours
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!