From: Mathieu Baudier Date: Fri, 21 Feb 2014 13:54:58 +0000 (+0000) Subject: Use Dictionary instead of Properties in OSGi services X-Git-Tag: argeo-commons-2.1.30~610 X-Git-Url: http://git.argeo.org/?a=commitdiff_plain;h=126df37604bec868723c662f14071196a9c6c038;p=lgpl%2Fargeo-commons.git Use Dictionary instead of Properties in OSGi services git-svn-id: https://svn.argeo.org/commons/trunk@6837 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- diff --git a/security/runtime/org.argeo.security.core/src/main/java/org/argeo/security/jcr/RemoteJcrAuthenticationProvider.java b/security/runtime/org.argeo.security.core/src/main/java/org/argeo/security/jcr/RemoteJcrAuthenticationProvider.java index b32ba8ea9..87208b2a3 100644 --- a/security/runtime/org.argeo.security.core/src/main/java/org/argeo/security/jcr/RemoteJcrAuthenticationProvider.java +++ b/security/runtime/org.argeo.security.core/src/main/java/org/argeo/security/jcr/RemoteJcrAuthenticationProvider.java @@ -16,8 +16,9 @@ package org.argeo.security.jcr; import java.util.ArrayList; +import java.util.Dictionary; +import java.util.Hashtable; import java.util.List; -import java.util.Properties; import javax.jcr.Node; import javax.jcr.Repository; @@ -64,12 +65,11 @@ public class RemoteJcrAuthenticationProvider implements AuthenticationProvider, Repository repository = new RemoteJcrRepositoryWrapper( repositoryFactory, url, sp); if (bundleContext != null) { - Properties serviceProperties = new Properties(); - serviceProperties.setProperty( - ArgeoJcrConstants.JCR_REPOSITORY_ALIAS, + Dictionary serviceProperties = new Hashtable(); + serviceProperties.put(ArgeoJcrConstants.JCR_REPOSITORY_ALIAS, ArgeoJcrConstants.ALIAS_NODE); - serviceProperties.setProperty( - ArgeoJcrConstants.JCR_REPOSITORY_URI, url); + serviceProperties + .put(ArgeoJcrConstants.JCR_REPOSITORY_URI, url); bundleContext.registerService(Repository.class.getName(), repository, serviceProperties); }