Repository repository = new RemoteJcrRepositoryWrapper(
repositoryFactory, url, sp);
if (bundleContext != null) {
Repository repository = new RemoteJcrRepositoryWrapper(
repositoryFactory, url, sp);
if (bundleContext != null) {
- Properties serviceProperties = new Properties();
- serviceProperties.setProperty(
- ArgeoJcrConstants.JCR_REPOSITORY_ALIAS,
+ Dictionary<String, String> serviceProperties = new Hashtable<String, String>();
+ serviceProperties.put(ArgeoJcrConstants.JCR_REPOSITORY_ALIAS,
bundleContext.registerService(Repository.class.getName(),
repository, serviceProperties);
}
bundleContext.registerService(Repository.class.getName(),
repository, serviceProperties);
}