Quarkus using beans cross project
I have an issue with duplicating many beans across several projects and wanted to reduce this by creating 1 repo that produces the beans. So far I’m struggling. Forgive me if this has already been answered, I’m still learning the terminology related to CDI so may be searching for the wrong answers.
This is what I’ve tried:
CDI Beans instances with qualifiers
good day.
Generic enum bean producer
I’m trying to write a generic enum producer;every injection point declare a different enum-type and value is resolved againts a set of values declared elsewhere (not so important).
I’m stuck writing generic enum @Produces
:
Bean class unexpectectadly vetoed when annotaded with @ConfigProperties
When trying to inject MyConfig
annotated with @ConfigProperties
into MyClass
, build fails with: