[
https://issues.apache.org/jira/browse/FELIX-2828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre De Rop closed FELIX-2828.
--------------------------------
> DependencyManager ResourceDependency annotation can't be applied on a class
> field
> ---------------------------------------------------------------------------------
>
> Key: FELIX-2828
> URL: https://issues.apache.org/jira/browse/FELIX-2828
> Project: Felix
> Issue Type: Bug
> Components: Dependency Manager
> Reporter: Pierre De Rop
> Assignee: Pierre De Rop
> Priority: Minor
>
> When using the Dependency Manager @ResourceDependency annotation, it is not
> possible to inject the resource on a class fields.
> For example, the following code does not work:
> @Component
> class VideoPlayer
> {
> @ResourceDependency(required=true, filter = "(path=/path/video.mkv)")
> URL resource;
> void play()
> {
> // this.resource is not injected with the required URL ...
> }
> }
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira