[picocontainer-scm] [jira] Closed: (PICO-368) The 'into' parameter of the implemented getComponentInstance method of a FactoryInjector subclass is always org.picocontainer.ComponentAdapter$NOTHING
"Paul Hammant (JIRA)" <jira-yCVjj/[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.cvs |
|---|---|
| Message-ID | <1763902.49409.1262275015397.JavaMail.haus-jira@codehaus01.managed.contegix.com> |
[ http://jira.codehaus.org/browse/PICO-368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Hammant closed PICO-368.
-----------------------------
Resolution: Fixed
Fix Version/s: 2.10
Patch applied with thanks.
> The 'into' parameter of the implemented getComponentInstance method of a FactoryInjector subclass is always org.picocontainer.ComponentAdapter$NOTHING
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: PICO-368
> URL: http://jira.codehaus.org/browse/PICO-368
> Project: PicoContainer
> Issue Type: Bug
> Components: PicoContainer (Java)
> Affects Versions: 2.9
> Environment: Windows Vista Business 64bit, Eclipse Galileo, Java 1.6.0_17 (64-bit)
> Reporter: Johan Hoogenboezem
> Assignee: Paul Hammant
> Fix For: 2.10
>
> Attachments: TestInjector-2.zip, TestInjector.zip
>
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
<hr/>
<p>
To unsubscribe from this list please visit:
</p>
<p>
<a href="http://xircles.codehaus.org/manage_email">http://xircles.codehaus.org/manage_email</a>