Skip to content

Enhance beans view to optionally display framework beans #360

Description

@FieteO

The beans view is really useful to find the place that defines a bean. As of now, it only shows the beans that are explicitly defined in the source files of the app and not the ones that are created by the frameworks autoconfiguration.

Sometimes it is necessary for debugging purposes, to also find the class that defines a framework bean (for instance to better understand under which conditions the bean is active and which values it uses).
IDE functions like "Find All References" can help here too, but for some beans there are so many references that it becomes impractical to find the place that defines the bean in this way. For example to find where UserDetails is defined:

Image

In this situation, it would be really helpful if there was

  • some setting or toggle to also show framework beans in the beans view [0]
  • a Go to Bean Definition option in the context menu, similar to the Find all [References|Implementations] or Go to Definition that I believe are provided by the java extension

I am not sure if a Go to Bean Definition is even possible, but that would provide the most value for me.

[0] I am talking about this:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions