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 2017/10/12 08:57:00 UTC
[jira] [Created] (TAMAYA-317) CDI Injection with parameter
annotated methods does not work
Anatole Tresch created TAMAYA-317:
-------------------------------------
Summary: CDI Injection with parameter annotated methods does not work
Key: TAMAYA-317
URL: https://issues.apache.org/jira/browse/TAMAYA-317
Project: Tamaya
Issue Type: Bug
Components: Extensions
Affects Versions: 0.3-incubating
Reporter: Anatole Tresch
Assignee: Anatole Tresch
Fix For: 0.4-incubating
Injection of a configuration value does not work for the following case:
{{@Inject
public void setStringValue(@ConfigProperty(name="my.optional.string.property") Optional<String> stringValue) {
this.stringValue = stringValue;
}}}
Reason:
* The custom extension does not recognize the method since it is checking only on {{@ConfigProperty}} on method level (and does ignore parameter level.
* The producer logic must be checked as well, not sure if it is able to interpret the given {{InjectionPoint}} correctly.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)