Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for meta configuration #101

Open
tomas-langer opened this issue Oct 22, 2018 · 0 comments
Open

Add support for meta configuration #101

tomas-langer opened this issue Oct 22, 2018 · 0 comments

Comments

@tomas-langer
Copy link
Contributor

Most applications want to combine config sources. The list of sources may not be known at design time, so it would be great to have support for meta configuration.
This could be a file loaded from (by priority):

  • location defined by a system property (e.g. javax.config.metaconfig=file:///tmp/javaconfig-meta.txt
  • a "known" location on file system (./javaconfig-meta.txt)
  • a "known" location on classpath (META-INF/javaconfig-meta.txt

The content would list config sources and their configuration, e.g.:

environment-variables
system-properties
file: optional=true,path=conf/dev.yaml,watch=true
file: optional=true,path=conf/prod.yaml
classpath: resource=default.yaml
classpath: resource=META-INF/javaconfig.properties

With the following "mandatory" config sources supported:
environment-variables
system-properties
classpath
file (optional and path should be supported)

Other configuration can be vendor specific
We should find a better format than clear text (maybe json?), as it is not flexible enough to describe the possible options nicely
This is based on a feedback from microprofile config presentation and on our MP implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant