You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Göktürk Gezer (JIRA)" <ji...@apache.org> on 2012/06/30 06:16:47 UTC

[jira] [Commented] (FELIX-3575) iPOJO: Constructor injection does not work for non-interface dependencies

    [ https://issues.apache.org/jira/browse/FELIX-3575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13404388#comment-13404388 ] 

Göktürk Gezer commented on FELIX-3575:
--------------------------------------

Hi,
This is a design decision by default: Constructor injections must be proxy object that interfaceless classes can't be. I've managed to implement some workaround but i'm not sure i can commit it without further review !
                
> iPOJO: Constructor injection does not work for non-interface dependencies
> -------------------------------------------------------------------------
>
>                 Key: FELIX-3575
>                 URL: https://issues.apache.org/jira/browse/FELIX-3575
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: ipojo-core-1.8.2
>            Reporter: Daan de Wit
>
> We have quite a few services that do not publish any interface (these services are private to their bundle). But that does not work when using constructor injection. It is unable to find the constructor: package.ClassName.<init>(org.apache.felix.ipojo.InstanceManager, null)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira