Skip to content

Commit

Permalink
[FELIX-5860] Upgrade to OSGi R7
Browse files Browse the repository at this point in the history
  • Loading branch information
jbonofre committed May 23, 2018
1 parent a25c2e1 commit 5631518
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 32 deletions.
31 changes: 5 additions & 26 deletions connect/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@
<dependency>
<groupId>org.osgi</groupId>
<artifactId>osgi.core</artifactId>
<version>6.0.0</version>
<version>7.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.compendium</artifactId>
<version>5.0.0</version>
<artifactId>osgi.cmpn</artifactId>
<version>7.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -103,31 +103,10 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<target>1.6</target>
<source>1.6</source>
<target>1.7</target>
<source>1.7</source>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>check-java-version</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<signature>
<groupId>org.codehaus.mojo.signature</groupId>
<artifactId>java15</artifactId>
<version>1.0</version>
</signature>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@
*/
package org.apache.felix.connect.felix.framework;

import java.util.Collection;
import java.util.Collections;
import java.util.Dictionary;
import java.util.Enumeration;
import java.util.Map;
import java.util.Set;
import java.util.*;

import org.osgi.framework.Bundle;
import org.osgi.framework.Constants;
Expand Down Expand Up @@ -347,6 +342,15 @@ public String[] getPropertyKeys()
return ServiceRegistrationImpl.this.getPropertyKeys();
}

@Override
public Dictionary<String, Object> getProperties() {
Dictionary<String, Object> dictionary = new Hashtable<String, Object>();
for (String key : getPropertyKeys()) {
dictionary.put(key, getProperty(key));
}
return dictionary;
}

@Override
public Bundle getBundle()
{
Expand Down Expand Up @@ -506,6 +510,7 @@ else if (rank.compareTo(otherRank) > 0)
// If ranks are equal, then sort by service id in descending order.
return (id.compareTo(otherId) < 0) ? 1 : -1;
}

}

private class ServiceReferenceMap implements Map<String, Object>
Expand Down

0 comments on commit 5631518

Please sign in to comment.