Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4611

Strategy "INSTANCE" does not seem to work with @Bind annotation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iPOJO
    • Labels:
      None

      Description

      I am seeing some problems with strategy="instance"

      First, I created a new component

      @Component(propagation = true)
      @Provides(strategy="INSTANCE")
      

      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;
      

        Attachments

          Activity

            People

            • Assignee:
              clement.escoffier Clement Escoffier
              Reporter:
              dzalbo Vladimir Dzalbo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: