felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Dzalbo (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-4611) Strategy "INSTANCE" does not seem to work with @Bind annotation
Date Fri, 22 Aug 2014 13:40:14 GMT
Vladimir Dzalbo created FELIX-4611:

             Summary: 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

I am seeing some problems with strategy="instance"

First, I created a new component 
@Component(propagation = true)

If I am trying to inject it with @Bind annotation, iPojo does not seem to inject it...

	@Bind(aggregate = true, optional = true, proxy = false)
	public void bindScreen(Screen screen) {
		log.info("Binding Screen: " + screen.getClass().getName());

However @Requires annotation works like a charm..

	@Requires(optional = true)
	Screen[] screensArray;

This message was sent by Atlassian JIRA

View raw message