[ 
https://issues.apache.org/jira/browse/FELIX-4611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Clement Escoffier reassigned FELIX-4611:
----------------------------------------

    Assignee: Clement Escoffier

> Strategy "INSTANCE" does not seem to work with @Bind annotation
> ---------------------------------------------------------------
>
>                 Key: FELIX-4611
>                 URL: https://issues.apache.org/jira/browse/FELIX-4611
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>            Reporter: Vladimir Dzalbo
>            Assignee: Clement Escoffier
>
> I am seeing some problems with strategy="instance"
> First, I created a new component 
> {code:java}
> @Component(propagation = true)
> @Provides(strategy="INSTANCE")
> {code}
> If I am trying to inject it with @Bind annotation, iPojo does not seem to 
> inject it...
> {code:java}
>       @Bind(aggregate = true, optional = true, proxy = false)
>       public void bindScreen(Screen screen) {
>               log.info("Binding Screen: " + screen.getClass().getName());
>       }
> {code}
> However @Requires annotation works like a charm..
> {code:java}
>       @Requires(optional = true)
>       Screen[] screensArray;
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to