geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickmcgu...@apache.org
Subject svn commit: r820037 - /geronimo/sandbox/djencks/osgi/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/osgi/BundleClassLoader.java
Date Tue, 29 Sep 2009 17:28:58 GMT
Author: rickmcguire
Date: Tue Sep 29 17:28:57 2009
New Revision: 820037

URL: http://svn.apache.org/viewvc?rev=820037&view=rev
Log:
Add resource support to the BundleClassLoader

Modified:
    geronimo/sandbox/djencks/osgi/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/osgi/BundleClassLoader.java

Modified: geronimo/sandbox/djencks/osgi/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/osgi/BundleClassLoader.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/djencks/osgi/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/osgi/BundleClassLoader.java?rev=820037&r1=820036&r2=820037&view=diff
==============================================================================
--- geronimo/sandbox/djencks/osgi/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/osgi/BundleClassLoader.java
(original)
+++ geronimo/sandbox/djencks/osgi/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/osgi/BundleClassLoader.java
Tue Sep 29 17:28:57 2009
@@ -20,6 +20,10 @@
 
 package org.apache.geronimo.kernel.osgi;
 
+import java.io.IOException;
+import java.net.URL;
+import java.util.Enumeration;
+
 import org.osgi.framework.Bundle;
 
 /**
@@ -43,4 +47,15 @@
     public String toString() {
         return "[BundleClassLoader] " + bundle;
     }
+
+    @Override
+	public URL getResource(String name) {
+        return bundle.getResource(name);
+	}
+
+	@SuppressWarnings("unchecked")
+    @Override
+	public Enumeration<URL> getResources(String name) throws IOException {
+        return bundle.getResources(name);
+	}
 }



Mime
View raw message