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 09DD2200BEF for ; Wed, 21 Dec 2016 00:51:36 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 087A1160B33; Tue, 20 Dec 2016 23:51:36 +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 77B27160B29 for ; Wed, 21 Dec 2016 00:51:35 +0100 (CET) Received: (qmail 79343 invoked by uid 500); 20 Dec 2016 23:51:34 -0000 Mailing-List: contact dev-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list dev@brooklyn.apache.org Received: (qmail 79327 invoked by uid 99); 20 Dec 2016 23:51:34 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Dec 2016 23:51:34 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5F728DFB85; Tue, 20 Dec 2016 23:51:34 +0000 (UTC) From: geomacy To: dev@brooklyn.apache.org Reply-To: dev@brooklyn.apache.org References: In-Reply-To: Subject: [GitHub] brooklyn-server issue #492: Allow a user to add or override deserialize conf... Content-Type: text/plain Message-Id: <20161220235134.5F728DFB85@git1-us-west.apache.org> Date: Tue, 20 Dec 2016 23:51:34 +0000 (UTC) archived-at: Tue, 20 Dec 2016 23:51:36 -0000 Github user geomacy commented on the issue: https://github.com/apache/brooklyn-server/pull/492 hi @svet, @tbouron, the `ConfigurationAdmin` is an OSGI compendium service, is that a dependency that we'd be happy to add to brooklyn-core? I think I would prefer not to, but if so , then we could get config admin from a static context as @neykov says. On the other hand we could avoid the compendium dependency, and instead change the `DeserializingClassRenamesProvider` class to become a non-static provider - it could be a singleton object that gets set up in the launchers (with an appropriate implementation, one way for OSGI launcher, one way for classic), probably in the `initPersistence` stage. After that, then `DeserializingClassRenamesProvider.loadDeserializingClassRenames()` becomes `DeserializingClassRenamesProvider.INSTANCE.loadDeserializingClassRenames()` Just a thought! --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---