Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4807E200B53 for ; Tue, 12 Jul 2016 13:36:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 46B45160A87; Tue, 12 Jul 2016 11:36:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BC871160A6A for ; Tue, 12 Jul 2016 13:36:21 +0200 (CEST) Received: (qmail 73052 invoked by uid 500); 12 Jul 2016 11:36:20 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 73017 invoked by uid 99); 12 Jul 2016 11:36:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2016 11:36:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A04412C027F for ; Tue, 12 Jul 2016 11:36:20 +0000 (UTC) Date: Tue, 12 Jul 2016 11:36:20 +0000 (UTC) From: "J.W. Janssen (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FELIX-5305) Direct injection of services fails when service properties are updated MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 12 Jul 2016 11:36:22 -0000 J.W. Janssen created FELIX-5305: ----------------------------------- Summary: Direct injection of services fails when service properties are updated Key: FELIX-5305 URL: https://issues.apache.org/jira/browse/FELIX-5305 Project: Felix Issue Type: Bug Components: Dependency Manager Affects Versions: dependencymanager-4.3.0 Reporter: J.W. Janssen 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)