From user-return-19657-archive-asf-public=cust-asf.ponee.io@karaf.apache.org Sat Nov 24 16:48:20 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id F26E618062B for ; Sat, 24 Nov 2018 16:48:19 +0100 (CET) Received: (qmail 82597 invoked by uid 500); 24 Nov 2018 15:48:19 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 82587 invoked by uid 99); 24 Nov 2018 15:48:18 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Nov 2018 15:48:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 8C66AC018C for ; Sat, 24 Nov 2018 15:48:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.615 X-Spam-Level: * X-Spam-Status: No, score=1.615 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id tO4sXmlI5ggf for ; Sat, 24 Nov 2018 15:48:16 +0000 (UTC) Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 82E715F41A for ; Sat, 24 Nov 2018 15:47:58 +0000 (UTC) X-Originating-IP: 82.238.224.4 Received: from [192.168.134.110] (bre91-1-82-238-224-4.fbx.proxad.net [82.238.224.4]) (Authenticated sender: jb@nanthrax.net) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 7224A240006 for ; Sat, 24 Nov 2018 15:47:51 +0000 (UTC) Subject: Re: Karaf 4.2.x: ConfigRepository requires access to TypedProperties To: user@karaf.apache.org References: <1543068596704-0.post@n3.nabble.com> From: =?UTF-8?Q?Jean-Baptiste_Onofr=c3=a9?= Message-ID: Date: Sat, 24 Nov 2018 16:47:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <1543068596704-0.post@n3.nabble.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Hi Jochen, Embedding felix utils as Private Package is probably the cleanest way. However, I'm surprised you are directly using ConfigRepository. Are you defining your own repository backend ? Regards JB On 24/11/2018 15:09, jochenw wrote: > Hi, > > in the 4.2 versions (I'm currently using 4.2.1), the interface of > org.apache.karaf.config.core.ConfigRepository has changed. The getConfig > function now returns TypedProperties. Earlier, the getConfigProperties > returned a Dictionary (or at least could be mapped to it). > > TypedProperties are defined in the org.apache.felix.utils.properties package > which is included in the felix fileinstall bundle. But it is not exported. > So is there another way to access this package than including it in my own > bundle, e.g. with ? > > Best Regards, > Jochen > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html > -- Jean-Baptiste Onofré jbonofre@apache.org http://blog.nanthrax.net Talend - http://www.talend.com