Hey guys

I was wondering, why is the annotation Config a qualifier?
https://github.com/apache/incubator-tamaya/blob/master/modules/injection-api/src/main/java/org/apache/tamaya/inject/api/Config.java

It seems out of place.  Injection as I understand it is a way to provide a
typesafe impl of a configuration object at runtime.  There are separate
modules for CDI that handle injection into CDI beans, and the provider of
this annotation is in CDI so I'm not sure why its an injection
requirement.  If the intention was to have a single annotation represent
both the typesafe objects and CDI beans that makes sense, but then it
probably shouldn't be a qualifier.  We can update the CDI extension to look
for fields with @Config and add a qualifier to them that can be processed
at runtime.

John

Reply via email to