Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5305

Direct injection of services fails when service properties are updated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • org.apache.felix.dependencymanager-r1
    • None
    • Dependency Manager
    • None

    Description

      Consider the following scenario: I've got a service, say, ServiceA, that is instantiated through configuration by means of a FactoryConfigurationAdapterService. The configuration-update callback manages the service properties of the actual service (it is not propagated).

      Another service, ServiceB, has a dependency on all instances of ServiceA. I use the direct field injection feature of DM to give me a map of all instances.

      If I update the service properties of any of the ServiceA instances, I lose them from my instance-map. The configuration is updated, but the instance never is injected back into my map (or my map is not injected back).

      When rewriting ServiceB to use plain callbacks, all changes are properly tracked.

      Attachments

        1. FELIX-5305.tgz
          27 kB
          J.W. Janssen

        Activity

          People

            pderop Pierre De Rop
            jajans J.W. Janssen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: