[
https://issues.apache.org/jira/browse/TAMAYA-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thomas Liebetraut updated TAMAYA-197:
-------------------------------------
Attachment: TAMAYA-197.patch
A patch that fixes this issue, including a test case to show the problem/verify
that it's working.
> DefaultConfigurationInjector does not inject into superclasses' fields
> ----------------------------------------------------------------------
>
> Key: TAMAYA-197
> URL: https://issues.apache.org/jira/browse/TAMAYA-197
> Project: Tamaya
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 0.3-incubating
> Reporter: Thomas Liebetraut
> Attachments: TAMAYA-197.patch
>
> Original Estimate: 0.5h
> Remaining Estimate: 0.5h
>
> The current implementation of tamaya-inject won't inject configuration into
> superclasses' values.
> Suppose a class A with some @Config annotated members and a class B which
> extends A. Then
> {{ConfigurationInjection.getConfigurationInjector().configure(instanceOfB);}}
> won't configure any fields annotated in A.
> Also, because the runtime time is used to determine what to inject, there is
> no easy way to get around this from the user API.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)