It's less pressing since you made the JsonProvider static but given the SmallRyeHealthReporter bean is @ApplicationScoped, the no-arg constructor is called twice when it is initialized.
I was wondering if:
we could make it @Singleton but we would need to check if doesn't break any use case - not sure how easy it would be
move the initialization that is in the constructor to the already existing @Postconstuct.
It's less pressing since you made the
JsonProvider
static but given theSmallRyeHealthReporter
bean is@ApplicationScoped
, the no-arg constructor is called twice when it is initialized.I was wondering if:
@Singleton
but we would need to check if doesn't break any use case - not sure how easy it would be@Postconstuct
.The latter would probably be the less risky move.