|
|
69ffcb |
From 9e1bb9bfee86490163fb1e226556620aa8cdf7bc Mon Sep 17 00:00:00 2001
|
|
|
69ffcb |
From: Mikolaj Izdebski <mizdebsk@redhat.com>
|
|
|
69ffcb |
Date: Fri, 21 Nov 2014 10:05:05 +0100
|
|
|
69ffcb |
Subject: [PATCH 2/3] Port to Eclipse Luna OSGi
|
|
|
69ffcb |
|
|
|
69ffcb |
---
|
|
|
69ffcb |
xbean-bundleutils/pom.xml | 8 +-------
|
|
|
69ffcb |
.../apache/xbean/osgi/bundle/util/DelegatingBundleContext.java | 10 ++++++++++
|
|
|
69ffcb |
2 files changed, 11 insertions(+), 7 deletions(-)
|
|
|
69ffcb |
|
|
|
69ffcb |
diff --git a/xbean-bundleutils/pom.xml b/xbean-bundleutils/pom.xml
|
|
|
69ffcb |
index 72f4865..2b3459d 100644
|
|
|
69ffcb |
--- a/xbean-bundleutils/pom.xml
|
|
|
69ffcb |
+++ b/xbean-bundleutils/pom.xml
|
|
|
69ffcb |
@@ -35,15 +35,9 @@
|
|
|
69ffcb |
<artifactId>slf4j-api</artifactId>
|
|
|
69ffcb |
</dependency>
|
|
|
69ffcb |
<dependency>
|
|
|
69ffcb |
- <groupId>org.osgi</groupId>
|
|
|
69ffcb |
- <artifactId>org.osgi.core</artifactId>
|
|
|
69ffcb |
- <version>4.3.1</version>
|
|
|
69ffcb |
- <scope>provided</scope>
|
|
|
69ffcb |
- </dependency>
|
|
|
69ffcb |
- <dependency>
|
|
|
69ffcb |
<groupId>org.eclipse</groupId>
|
|
|
69ffcb |
<artifactId>osgi</artifactId>
|
|
|
69ffcb |
- <version>3.6.0.v20100517</version>
|
|
|
69ffcb |
+ <version>3.10.0-v20140606-1445</version>
|
|
|
69ffcb |
<scope>provided</scope>
|
|
|
69ffcb |
</dependency>
|
|
|
69ffcb |
</dependencies>
|
|
|
69ffcb |
diff --git a/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/DelegatingBundleContext.java b/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/DelegatingBundleContext.java
|
|
|
69ffcb |
index 58a392b..cc8d081 100644
|
|
|
69ffcb |
--- a/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/DelegatingBundleContext.java
|
|
|
69ffcb |
+++ b/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/DelegatingBundleContext.java
|
|
|
69ffcb |
@@ -31,7 +31,9 @@ import org.osgi.framework.BundleListener;
|
|
|
69ffcb |
import org.osgi.framework.Filter;
|
|
|
69ffcb |
import org.osgi.framework.FrameworkListener;
|
|
|
69ffcb |
import org.osgi.framework.InvalidSyntaxException;
|
|
|
69ffcb |
+import org.osgi.framework.ServiceFactory;
|
|
|
69ffcb |
import org.osgi.framework.ServiceListener;
|
|
|
69ffcb |
+import org.osgi.framework.ServiceObjects;
|
|
|
69ffcb |
import org.osgi.framework.ServiceReference;
|
|
|
69ffcb |
import org.osgi.framework.ServiceRegistration;
|
|
|
69ffcb |
|
|
|
69ffcb |
@@ -153,5 +155,13 @@ public class DelegatingBundleContext implements BundleContext {
|
|
|
69ffcb |
public Bundle getBundle(String location) {
|
|
|
69ffcb |
return bundleContext.getBundle(location);
|
|
|
69ffcb |
}
|
|
|
69ffcb |
+
|
|
|
69ffcb |
+ public <S> ServiceObjects<S> getServiceObjects(ServiceReference<S> reference) {
|
|
|
69ffcb |
+ return bundleContext.getServiceObjects(reference);
|
|
|
69ffcb |
+ }
|
|
|
69ffcb |
+
|
|
|
69ffcb |
+ public <S> ServiceRegistration<S> registerService(Class<S> clazz, ServiceFactory<S> factory, Dictionary<String, ?> properties) {
|
|
|
69ffcb |
+ return bundleContext.registerService(clazz, factory, properties);
|
|
|
69ffcb |
+ }
|
|
|
69ffcb |
|
|
|
69ffcb |
}
|
|
|
69ffcb |
--
|
|
|
69ffcb |
2.9.3
|
|
|
69ffcb |
|