From 126df37604bec868723c662f14071196a9c6c038 Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Fri, 21 Feb 2014 13:54:58 +0000 Subject: [PATCH] Use Dictionary instead of Properties in OSGi services git-svn-id: https://svn.argeo.org/commons/trunk@6837 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- .../jcr/RemoteJcrAuthenticationProvider.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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); } -- 2.30.2