Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Service/Manager implementation classes in Class/Sequence Diagrams

 
Maciek Falski
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

In my design I decided to go for "design by interface" approach to improve decoupling, reusability and testability. In practice it means that every Service or Manager has an interface and implementation and if any other class uses it, it is references by interface. Classic, right? Especially when using EJB3 or Spring.

I got confused though when presenting such approach on diagrams. It clutters the picture a bit and it doesn't look like giving any value there. On the other hand it's pretty essential part of design so it should be presented somehow (or at least mentioned in assumptions for Class diagram).

What do you think about it? How you present Service/Manager-like classes in Class Diagram?

What about Sequence Diagrams: calls should go to interfaces or implementations?

Thanks a lot for any comments.

Cheers,
Maciek
 
Maciek Falski
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic