File tree Expand file tree Collapse file tree 2 files changed +16
-32
lines changed
src/main/java/org/apache/felix/connect/felix/framework Expand file tree Collapse file tree 2 files changed +16
-32
lines changed Original file line number Diff line number Diff line change 5858 <dependency >
5959 <groupId >org.osgi</groupId >
6060 <artifactId >osgi.core</artifactId >
61- <version >6 .0.0</version >
61+ <version >7 .0.0</version >
6262 <scope >provided</scope >
6363 </dependency >
6464 <dependency >
6565 <groupId >org.osgi</groupId >
66- <artifactId >org. osgi.compendium </artifactId >
67- <version >5 .0.0</version >
66+ <artifactId >osgi.cmpn </artifactId >
67+ <version >7 .0.0</version >
6868 <scope >provided</scope >
6969 </dependency >
7070 <dependency >
103103 <groupId >org.apache.maven.plugins</groupId >
104104 <artifactId >maven-compiler-plugin</artifactId >
105105 <configuration >
106- <target >1.6 </target >
107- <source >1.6 </source >
106+ <target >1.7 </target >
107+ <source >1.7 </source >
108108 </configuration >
109109 </plugin >
110- <plugin >
111- <groupId >org.codehaus.mojo</groupId >
112- <artifactId >animal-sniffer-maven-plugin</artifactId >
113- <version >1.5</version >
114- <executions >
115- <execution >
116- <id >check-java-version</id >
117- <phase >verify</phase >
118- <goals >
119- <goal >check</goal >
120- </goals >
121- <configuration >
122- <signature >
123- <groupId >org.codehaus.mojo.signature</groupId >
124- <artifactId >java15</artifactId >
125- <version >1.0</version >
126- </signature >
127- </configuration >
128- </execution >
129- </executions >
130- </plugin >
131110 <plugin >
132111 <groupId >org.apache.maven.plugins</groupId >
133112 <artifactId >maven-source-plugin</artifactId >
Original file line number Diff line number Diff line change 1818 */
1919package org .apache .felix .connect .felix .framework ;
2020
21- import java .util .Collection ;
22- import java .util .Collections ;
23- import java .util .Dictionary ;
24- import java .util .Enumeration ;
25- import java .util .Map ;
26- import java .util .Set ;
21+ import java .util .*;
2722
2823import org .osgi .framework .Bundle ;
2924import org .osgi .framework .Constants ;
@@ -347,6 +342,15 @@ public String[] getPropertyKeys()
347342 return ServiceRegistrationImpl .this .getPropertyKeys ();
348343 }
349344
345+ @ Override
346+ public Dictionary <String , Object > getProperties () {
347+ Dictionary <String , Object > dictionary = new Hashtable <String , Object >();
348+ for (String key : getPropertyKeys ()) {
349+ dictionary .put (key , getProperty (key ));
350+ }
351+ return dictionary ;
352+ }
353+
350354 @ Override
351355 public Bundle getBundle ()
352356 {
@@ -506,6 +510,7 @@ else if (rank.compareTo(otherRank) > 0)
506510 // If ranks are equal, then sort by service id in descending order.
507511 return (id .compareTo (otherId ) < 0 ) ? 1 : -1 ;
508512 }
513+
509514 }
510515
511516 private class ServiceReferenceMap implements Map <String , Object >
You can’t perform that action at this time.
0 commit comments