felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre De Rop (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-5104) Call a conf dependency callback Instance with an instantiated component
Date Mon, 16 Nov 2015 20:53:11 GMT
Pierre De Rop created FELIX-5104:

             Summary: 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

View raw message