• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to JEE dependency injection in sequence diagram?  RSS feed

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I want to use "cool" dependency feature of JEE, but not sure how to show it in sequence diagrams?
However, i have used it in class diagram using UML dependency element between two classes.
I would like to use DI for one more reason, as "Service Locator" is eating to much space in my sequence diagrams.

Thanks
Arpit
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Arpit,

A stereotype marked <<injectetd>> may be used to indicate that an object in the sequence diagram was injected into the object calling its method.

Cheers,
Praison
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!