Closed
Description
Currently HealthIndicator
instances are required to be registered as Spring beans in order to provide health information. This means that Boot's Health information infrastructure cannot be easily used for health information on integration points which are not known when application context is created, or are simply dynamic by nature and can be changed in runtime.
IMO introduction of something like HealthIndicator
registry would allow this use case while also retaining compatibility with current approach.
If this suggestion is accepted I'd be willing to work on a PR to provide such functionality.