[ https://issues.apache.org/jira/browse/FELIX-5104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre De Rop closed FELIX-5104. -------------------------------- > Call a conf dependency callback Instance with an instantiated component > ----------------------------------------------------------------------- > > Key: FELIX-5104 > URL: https://issues.apache.org/jira/browse/FELIX-5104 > Project: Felix > Issue Type: Improvement > Components: Dependency Manager > Affects Versions: org.apache.felix.dependencymanager-r5 > Reporter: Pierre De Rop > Assignee: Pierre De Rop > Priority: Minor > Fix For: org.apache.felix.dependencymanager-r6 > > > Normally, when you specify a configuration dependency INSTANCE callback, then > the component is not yet instantiated at the time the INSTANCE callback is > invoked. > If the INSTANCE callback is a factory object that has to create the component > instance (from its "create" method), then this allows the factory object to > get injected with the configuration, and then use that configuration from the > factory.create method. > But, in the context of FELIX-4689 (Create a more fluent syntax for the > dependency manager builder), we need a way to specify a configuration > dependency instance callback and ensure that the component instance(s) is > already instantiated before the instance callback is invoked. > To fix this issue, we simply need to add a " setCallback(Object instance, > String callback, boolean needsInstance)" method in the > ConfigurationDependency interface, in order to allow to specify if the > component instance should be instantiated or not before the instance callback > is invoked. -- This message was sent by Atlassian JIRA (v6.3.4#6332)