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 2015/05/04 11:57:06 UTC

[jira] [Created] (FELIX-4879) ConfigurationDependency should always "need instance".

Pierre De Rop created FELIX-4879:
------------------------------------

             Summary: ConfigurationDependency should always "need instance".
                 Key: FELIX-4879
                 URL: https://issues.apache.org/jira/browse/FELIX-4879
             Project: Felix
          Issue Type: Improvement
          Components: Dependency Manager
    Affects Versions: org.apache.felix.dependencymanager-r2
            Reporter: Pierre De Rop
            Assignee: Pierre De Rop
            Priority: Minor
             Fix For: org.apache.felix.dependencymanager-r3


Currently, the ConfigurationDependency only specifies that it "needs an instance" if there is no callback instance. But if there is a callback instance, then the "needsInstance" method returns false (because we have the callback instance already).

So, from one side, it makes sense to not require a component instance if there is a callback instance configured (since we have the callback instance, we don't need the component instance).

However, the callback instance is then not able to get access to the component instances while being invoked (the first time), using the Component object.

So, the ConfigurationDependency should always have a "needsInstance" method returning true (always), even if there is a callback instance configured for the Configuration Dependency.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)