[libxbean-java] 02/04: Add DelegatingBundleContext.patch

Markus Koschany apo-guest at moszumanska.debian.org
Thu Mar 12 17:19:49 UTC 2015


This is an automated email from the git hooks/post-receive script.

apo-guest pushed a commit to branch master
in repository libxbean-java.

commit 373d841ffda5d54d4768d4f31e591c723f680e19
Author: Markus Koschany <apo at gambaru.de>
Date:   Thu Mar 12 18:09:07 2015 +0100

    Add DelegatingBundleContext.patch
---
 debian/patches/DelegatingBundleContext.patch | 38 ++++++++++++++++++++++++++++
 debian/patches/bootstrap.series              |  1 +
 debian/patches/full.series                   |  1 +
 3 files changed, 40 insertions(+)

diff --git a/debian/patches/DelegatingBundleContext.patch b/debian/patches/DelegatingBundleContext.patch
new file mode 100644
index 0000000..8d291a6
--- /dev/null
+++ b/debian/patches/DelegatingBundleContext.patch
@@ -0,0 +1,38 @@
+From: Markus Koschany <apo at gambaru.de>
+Date: Thu, 12 Mar 2015 18:02:28 +0100
+Subject: DelegatingBundleContext
+
+Implement missing methods to make the package compile. However they are not
+supported.
+
+Forwarded: no
+---
+ .../apache/xbean/osgi/bundle/util/DelegatingBundleContext.java | 10 +++++++++-
+ 1 file changed, 9 insertions(+), 1 deletion(-)
+
+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
+index f4e876d..b83cd35 100644
+--- 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
+@@ -34,6 +34,8 @@ import org.osgi.framework.InvalidSyntaxException;
+ import org.osgi.framework.ServiceListener;
+ import org.osgi.framework.ServiceReference;
+ import org.osgi.framework.ServiceRegistration;
++import org.osgi.framework.ServiceFactory;
++import org.osgi.framework.ServiceObjects;
+ 
+ /**
+  * BundleContext for DelegatingBundle. 
+@@ -153,5 +155,11 @@ public class DelegatingBundleContext implements BundleContext {
+     public Bundle getBundle(String location) {
+         return bundleContext.getBundle(location);
+     }
+-    
++    public <S> ServiceObjects<S> getServiceObjects(ServiceReference<S> reference) {
++        throw new UnsupportedOperationException();
++    }
++    public <S> ServiceRegistration<S> registerService(Class<S> clazz, ServiceFactory<S> factory, Dictionary<String, ?> properties) {
++        throw new UnsupportedOperationException();
++    }
++
+ }
diff --git a/debian/patches/bootstrap.series b/debian/patches/bootstrap.series
index 5195721..093e9f7 100644
--- a/debian/patches/bootstrap.series
+++ b/debian/patches/bootstrap.series
@@ -1,3 +1,4 @@
 bootstrap.diff
 bundle.diff
 modules.diff
+DelegatingBundleContext.patch
diff --git a/debian/patches/full.series b/debian/patches/full.series
index 9ab4fca..fe5c167 100644
--- a/debian/patches/full.series
+++ b/debian/patches/full.series
@@ -1,2 +1,3 @@
 bundle.diff
 modules.diff
+DelegatingBundleContext.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libxbean-java.git



More information about the pkg-java-commits mailing list