Injectable configuration #111
Replies: 4 comments 9 replies
-
No. It should be in the scope of CDI, not here. |
Beta Was this translation helpful? Give feedback.
-
A qualified "yes" - injection as @radcortez points out is the purview of CDI, not us. However, it should be possible for an application to inject their configuration object (see my comments on the "Programmatic API" thread) by its type, which should uniquely identify the application configuration. This specification should state that compliant implementations of this specification which also implement the CDI specification are required to facilitate this in an implementation-specific manner. |
Beta Was this translation helpful? Give feedback.
-
I see configuration as a spectrum: (In terms of the spectrum, injecting configuration falls in the yellow/left end of the spectrum.) I agree that injection of configuration (where that term is deliberately left undefined here) should be supported where possible. I agree that CDI should be the mechanism by which injection is implemented wherever possible. As David notes correctly, there are also cases where injection cannot be supported (from within a portable extension, for example). |
Beta Was this translation helpful? Give feedback.
-
Absolutely yes. |
Beta Was this translation helpful? Give feedback.
-
Do we want to support Injectable configuration in this spec?
Beta Was this translation helpful? Give feedback.
All reactions