Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Relection API calls in UML Sequence Diagrams

 
Andrew Leer
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do reflection API calls look like in Sequence diagrams?

Everytime I draw one I get method call arrows that go to the left, and return methods that point to the left. This appears wrong to me. (I'm no UML guru, but I've never seen that before)

Thank you,
Andrew J. Leer
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you are using some software tool to draw the diagram?
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use sequence diagrams a lot and I wanted to pick up on your concern about which way the arrows run. I find it more pleasing when calls all go left to right and returns all go right to left, but it can't always be done. Callback methods come to mind as one exception. Other cases might expose circular dependencies and may indeed be bad ... or not. Anyhow, I wouldn't worry that there is any rule against calls going right to left.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic