FasterXML / FasterXML/jackson-future-ideas

Feature: Module that allows configuration overrides via environment variables and/or system properties

Aperta
#53 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Nessun dato sulla lingua
Stelle
21
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

This is a feature suggestion to allow overrides on an arbitrary object via environment variables and system properties.

Given a configuration bean (or any bean) that has been de serialized by a configuration YAML or (H)JSON file, this allows ad-hoc/at runtime overrides of the values in the persistent data source. It stores any env var or prop starting with a prefix in a hash map (for example `MYAPP_FOO_BAR=1` or `-Dmyapp.foo.bar=1`) and then it turns the deserialized object back into a JsonTree, injects any discovered values from the environment, and recreates the object.

It's not ready for a pull request yet because I'm not sure this is in scope and I'm not sure about my implementation.
Please see it here:
https://github.com/ElderResearch/commons-jvm/blob/master/core/src/main/java/com/elderresearch/commons/lang/config/EnvironmentTree.java
specifically the `applyOverrides()`

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.