By the way, I have asked Kevin to mentor MP Config release. He will send an email to microprofile-wg for voting. I'll send email to the other parties and then give him a go ahead.
Roberto Cortez
@radcortez
Ok!
Emily Jiang
@Emily-Jiang
thanks
Duncan
@dabloem
Hi all, I was wondering if there is already something to bring mp-config to spring-boot? So, developers can use @ConfigProperty instead of @Value ?
Jan Bernitt
@jbee
isn't MP config dependent on CDI which you do not have in a spring environment?
Roberto Cortez
@radcortez
Yes, for @NonBinding
spring supports @Inject, not sure now it deals with @NonBinding
Jan Bernitt
@jbee
surely you can make the annotation work in some way on top of spring concepts but it might need some adaptors or even replacement of classes I would guess
Duncan
@dabloem
Well, I did some proof of concept. And it works
however, I am not a spring guru
Roberto Cortez
@radcortez
which MP Config implementation are you using?
Duncan
@dabloem
I implemented a BeanPostProcessor which is looking for ConfigProperty on fields, and if found it adds a FieldCallBack, which does the lookup via ConfigProvider.getConfig()
Roberto Cortez
@radcortez
ah great
Duncan
@dabloem
Smallrye and Geronimo both work
Roberto Cortez
@radcortez
unfortunately for a single annotation you do required to have the CDI API jar in your CP
Duncan
@dabloem
But because it was not that hard, I was just wondering if this already exists, and probably a bit more mature
Roberto Cortez
@radcortez
not that I’m aware, because no one ever asked for it. usually spring developers stick to what they already have