[
https://issues.apache.org/jira/browse/TAMAYA-34?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anatole Tresch resolved TAMAYA-34.
----------------------------------
Resolution: Implemented
> 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)