How to generate UML diagrams programmatically in Java?

Basic UML diagram of spring framework?

  • Hi, I am using spring framework from past 3 years now. At the moment i am trying to debug its internals. I was looking for a class diagram or sequence diagram or any other diagram. which explain the internal structure. Like for example: i have debugged the source code and found that when a web container start it goes to DispatcherServlet. Which is actually a subclass of FrameworkServlet. Which again is a subclass of HttpServletBean, which ... of  HttpServlet ... GenericServlet. And DispatcherServlet gets the init() method which get invoked by the container from HttpServletBean and it used it to initialize the framework. Initializing here means Creation of PropertyValues for the bean and Creating BeanWrapper and reqistering etc etc. I have spend about 2 hours in finding this out. If there were UML diagrams i would have understand it easily saving lot of time. QUESTION 2: Is there a tool which can generate these diagrams if i give it spring jars. Thanks in advance.

  • Answer:

    You can checkout http://www.architexa.com/. Architexa helps you understand and document large/complex codebases.

Pallav Jha at Quora Visit the source

Was this solution helpful to you?

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.