Repository navigation
Add hints for HealthContributors - #1184
olivierboudet wants to merge 1 commit into
Conversation
|
Yes. @olivierboudet thanks for the PR! Are you interested if I guide you to repurpose this PR with the AOT engine instead? |
|
@snicoll yes sure. This is what I've tried : But I am listening to your advices to update this PR :) |
|
OK cool. So the idea would be to create a That interface gives you access to the bean factory and configuration registry. You could, in the implementation, use For testing, please check You need to register your implementation in spring.factories and then give it a try on your sample. Let me know how it goes! |
|
hello @snicoll I pushed a first try to infer health indicators but only Am I doing something wrong ? |
Nothing that I could see from the code. These two indicators are usually exposed by default. Do you have mongo in the app you're trying and is it configured? If you don't, that's to be expected that it's not available (and therefore not registered for the app). |
|
Yes I have an application with I think this is because the health indicator for mongodb is in fact a As MongoDatabaseFactoryDependentConfiguration is not public, I can't set a hint for it. |
Ah yes, sorry. That's what happens when you comment outside of an IDE. You should check for the parent interface indeed (
That's a separate problem. Can you please create an issue for that? Let me know when the PR is ready with the contributor check or if you want me to take over. Thanks! |
0677044 to
489a1c8
Compare
|
The PR is ready with HealthContributor check. |
|
@olivierboudet thank you for making your first (code) contribution to Spring Native. |
Add hints for all HealthIndicator subclasses to fix #1183