Skip to content

Add support for potential spring bean references #290

@gayanper

Description

@gayanper

Today we highlight beans with gutter icons with an action of "reveal in dashboard". But the same information we get from SpringBoot LS can be used to provide potential spring bean reference as well.

@Configuration
class Config {
     @Bean
     HttpClient httpClient() {}
}

@Service
class ServiceX {
    public ServiceX(HttpClient client) {}
}

Now here we can provide a potential bean usage references at Config class for gutter icon for bean "httpClient". And also we can provide a potential definition references for constructer parameter ServiceX by looking at the same bean information we get from SB LS.

We can show a different gutter icon or a different action name to make it highlight that these are "potential" references. Another way would be to do the same in Dashboard with a different edge representation while the application is not running. Either solution would provide the functionality.

Why

This feature will enable to trouble shoot bean definition when running tests. To find out where certain beans are coming from. Also it make the navigation easy with a kind of "potential"ness.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions