Config Injection #126
Emily-Jiang
started this conversation in
Ideas
Replies: 1 comment 6 replies
-
I would vote "no" on single property injection. For type injection of configuration mapped objects, I would suggest only supporting the simple form for MVP: |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For config injection, the dependency will be on JSR 330.
Propose :
@Inject @ConfigProperty("name") String/other type
@Inject @ConfigProperty("prefix") MyConfigMapping mapping;
The property lookup will be identical for single property or ConfigMapping. For ConfigMapping, the value will be treated as prefix while for non configmapping, the name will be the exact property name.
Any thoughts on this?
Beta Was this translation helpful? Give feedback.
All reactions