PicoContainer
  1. PicoContainer
  2. PICO-368

The 'into' parameter of the implemented getComponentInstance method of a FactoryInjector subclass is always org.picocontainer.ComponentAdapter$NOTHING

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.9
    • Fix Version/s: 2.10
    • Component/s: PicoContainer (Java)
    • Labels:
      None
    • Environment:
      Windows Vista Business 64bit, Eclipse Galileo, Java 1.6.0_17 (64-bit)
    • Testcase included:
      yes
    • Number of attachments :
      2

      Description

      Run the TestInjector test case in the attached Eclipse project to see the test fail. The output contains more information.

      It seems that the "into" parameter of the getComponentInstance method of a FactoryInjector subclass (see AliceFactory in attachment) cannot be used to selectively inject different instances of a component based on the type of the class being injected into; it always resolves to be of type org.picocontainer.ComponentAdapter$NOTHING.
      This should be possible as inferred from http://www.picocontainer.org/factory-injection.html.

        People

        • Assignee:
          Paul Hammant
          Reporter:
          Johan Hoogenboezem
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: