commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CONFIGURATION-676) Configuration with OS Environment Variables
Date Fri, 24 Nov 2017 20:28:01 GMT

    [ https://issues.apache.org/jira/browse/CONFIGURATION-676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16265517#comment-16265517
] 

Oliver Heger commented on CONFIGURATION-676:
--------------------------------------------

Commons Configuration already has support for reading environment variables. There is the
dedicated {{EnviromentConfiguration}} class for this purpose.

It is also possible to integrate values from environment variables into other configurations
using interpolation with the {{env}} prefix. This is described in the user's guide at http://commons.apache.org/proper/commons-configuration/userguide/howto_basicfeatures.html#Variable_Interpolation


> Configuration with OS Environment Variables
> -------------------------------------------
>
>                 Key: CONFIGURATION-676
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-676
>             Project: Commons Configuration
>          Issue Type: New Feature
>            Reporter: Robin Björklin
>
> Handling configuration with Environment Variables have become more commonplace with the
advent of containers and it would be very nice if it were to be supported by commons-configuration.
> An example project doing this would be Spring Boot where where an configuration property
such as *colors.background* could be picked up as the environment variable *COLORS_BACKGROUND*.
> Would this make sense for commons-configuration?
> Reference: https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message