karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Karaf 4.2.x: ConfigRepository requires access to TypedProperties
Date Sat, 24 Nov 2018 15:47:50 GMT
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 <Private-Package>?
> 
> 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

Mime
View raw message