You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Pierre De Rop (JIRA)" <ji...@apache.org> on 2010/06/11 09:01:16 UTC

[jira] Resolved: (FELIX-2344) DM / callback method is not invoked when an extra dependency is defined within an "init" component method.

     [ https://issues.apache.org/jira/browse/FELIX-2344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre De Rop resolved FELIX-2344.
----------------------------------

    Resolution: Fixed

Committed a fix in revision 953572/953573, which seems to resolve the problem.
Added new testcase FELIX2344_ExtraDependencyWithAutoConfigTest.java for testing extra/autoconfig dependencies.
Modified FELIX2344_ExtraDependencyWithCallbackTest.java in order to check that optional dependency callbacks are invoked after the start method call.

> DM / callback method is not invoked when an extra dependency is defined within an "init" component method.
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2344
>                 URL: https://issues.apache.org/jira/browse/FELIX-2344
>             Project: Felix
>          Issue Type: Bug
>          Components: Dependency Manager
>            Reporter: Pierre De Rop
>         Attachments: FELIX2344_ExtraDependencyWithCallbackTest.java, sample.instancebound.tgz
>
>
> This issue applies to the trunk version of dependency manager.
> So, it seems that when a component defines custom dependencies from its "init" method, then such extra dependencies only support auto configuration mode, and not callbacks.
> I have attached to this issue a sample maven project which reproduces the problem:
> In the sample, a "MyClient" component is defining (from its init() method) an extra required dependency over a "MyService" service, using a "bind" callback. So, the start() method is invoked, but the bind method has not been called.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.