aspose file tools*
The moose likes OO, Patterns, UML and Refactoring and the fly likes Relection API calls in UML Sequence Diagrams Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Relection API calls in UML Sequence Diagrams" Watch "Relection API calls in UML Sequence Diagrams" New topic
Author

Relection API calls in UML Sequence Diagrams

Andrew Leer
Ranch Hand

Joined: Nov 11, 2003
Posts: 44
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

Joined: Jul 11, 2001
Posts: 14112
So you are using some software tool to draw the diagram?


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
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.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Relection API calls in UML Sequence Diagrams