29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
|
From d9df4679129efdc654b44213fb33abd7ac042e81 Mon Sep 17 00:00:00 2001
|
||
|
From: Marek Goldmann <goldmann@fedoraproject.org>
|
||
|
Date: Tue, 3 Jul 2012 18:43:17 +0200
|
||
|
Subject: [PATCH 5/5] Add getResourceURL method to make jbosgi-framework
|
||
|
happy...
|
||
|
|
||
|
---
|
||
|
src/main/java/org/osgi/util/xml/XMLParserActivator.java | 4 ++++
|
||
|
1 file changed, 4 insertions(+)
|
||
|
|
||
|
diff --git a/src/main/java/org/osgi/util/xml/XMLParserActivator.java b/src/main/java/org/osgi/util/xml/XMLParserActivator.java
|
||
|
index 963c092..85f9f56 100644
|
||
|
--- a/src/main/java/org/osgi/util/xml/XMLParserActivator.java
|
||
|
+++ b/src/main/java/org/osgi/util/xml/XMLParserActivator.java
|
||
|
@@ -165,6 +165,10 @@ public class XMLParserActivator implements BundleActivator, ServiceFactory {
|
||
|
.getResource(DOMCLASSFILE)));
|
||
|
}
|
||
|
|
||
|
+ protected URL getResourceURL(Bundle parserBundle, String resname) {
|
||
|
+ return parserBundle.getResource(resname);
|
||
|
+ }
|
||
|
+
|
||
|
/**
|
||
|
* This method has nothing to do as all active service registrations will
|
||
|
* automatically get unregistered when the bundle stops.
|
||
|
--
|
||
|
1.7.10.4
|
||
|
|