You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tamaya.apache.org by "Anatole Tresch (JIRA)" <ji...@apache.org> on 2014/12/20 15:19:14 UTC

[jira] [Created] (TAMAYA-34) Enabling overriding configurations

Anatole Tresch created TAMAYA-34:
------------------------------------

             Summary: Enabling overriding configurations
                 Key: TAMAYA-34
                 URL: https://issues.apache.org/jira/browse/TAMAYA-34
             Project: Tamaya
          Issue Type: Improvement
          Components: API, Core
            Reporter: Anatole Tresch
            Assignee: Anatole Tresch
             Fix For: 0.1-incubating


When accessing configuration templates, there might be use cases, where programmatic code wants to explicitly override some of the config that is provided by default. Similarly there might be use cases, where parts of the configuration is not managed by the Tamaya ConfigurationManager. When injecting configuration into beans, accessing templates as well as resolving expressions, it must be possible to provide overriding configurations as well.
Similarly this would also simplify testing a lot.

This would be easily done by the following changes in {{Configuration}} (and subsequent elements in the chain):
{noformat}
public void configure(Object o)
public void resolveExpressions(String expression) 
public <T> T createTemplate(Class<T> templateType);
-> 
public void configure(Object o, Configuration... configs);
public void resolveExpression(String expression, Configuration... configs);
public <T> T createTemplate(Class<T> templateType, Configuration... configs);
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)