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/05/17 14:45:41 UTC
[jira] Commented: (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:comment-tabpanel&focusedCommentId=12868204#action_12868204 ]
Pierre De Rop commented on FELIX-2344:
--------------------------------------
Just committed a testcase for this issue here:
dependencymanager/test/src/test/java/org/apache/felix/dm/test/FELIX2344_ExtraDependencyWithCallback.java
> 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
> Fix For: upnp-basedriver-0.8.0
>
> Attachments: 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.