Explanation of Spring Beans Graph
What is the Spring Beans Graph?
If the application uses Spring Beans, you can view which Beans are used per Domain and the dependencies between the various beans. This is useful to gain insights on how the Domains would be initialized if they were extracted as a Service. You will see which Spring Beans would be initialized in the context of every Domain and where to look for their definitions (annotation, the XML files, etc.)
In the figure above you can see the Spring Beans Graph of productService which has been auto-refactored as a partial class. It is loaded by productController and, in turn, it loads the productRepository, logger, orderLineRespository and inventoryService.
Hovering over the lines (as seen in the figure) provides more details about the Dependency Type - in the figure, productService loads inventoryService through an annotation.
Access a list of Spring Beans
Take the following steps to access a list of Spring Beans associated to a Domain:
- Log into the vFunction Server UI
- Select Analysis from the top, center menu bar
- Select a Domain from the Domains List on the right-hand sidebar to expand the options for the Domain
- Select View next to Spring Beans for the Domain in the right-hand sidebar’s submenu for the selected Domain
Access a Spring Beans Graph
Take the following steps to access a Spring Beans Graph:
- Log into the vFunction Server UI
- Select Analysis from the top, center menu bar
- Select a Domain from the Domains List on the right-hand sidebar to expand the options for the Domain
- Select View next to Spring Beans for the Domain in the right-hand sidebar’s submenu for the selected Domain
- Select a specific Bean to expand its submenu options
- Select Details next to Bean to see the Spring Beans Graph in the center pane
Ignore a Spring Bean
You can decide to remove a bean from the scope of the domain by clicking the IGNORE BEAN on a spring bean:
- Log into the vFunction Server UI
- Select Analysis from the top, center menu bar
- Select a Domain from the Domains List on the right-hand sidebar to expand the options for the Domain
- Select View next to Spring Beans for the Domain in the right-hand sidebar’s submenu for the selected Domain
- Select a specific Bean to expand its submenu options
- Select Ignore Bean from the submenu options under Actions