geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r828155 - /geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/osgi/BundleClassLoader.java
Date Wed, 21 Oct 2009 19:29:58 GMT
Author: gawor
Date: Wed Oct 21 19:29:57 2009
New Revision: 828155

URL: http://svn.apache.org/viewvc?rev=828155&view=rev
Log:
override loadClass(String, boolean) method

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

Modified: geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/osgi/BundleClassLoader.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/osgi/BundleClassLoader.java?rev=828155&r1=828154&r2=828155&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/osgi/BundleClassLoader.java
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/osgi/BundleClassLoader.java
Wed Oct 21 19:29:57 2009
@@ -38,12 +38,20 @@
         this.bundle = bundle;
     }
 
-
     @Override
-    public Class<?> loadClass(String s) throws ClassNotFoundException {
-        return bundle.loadClass(s);
+    public Class<?> loadClass(String name) throws ClassNotFoundException {
+        return loadClass(name, false);
     }
-
+    
+    @Override
+    protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
{    
+        Class clazz = bundle.loadClass(name);
+        if (resolve) {
+            resolveClass(clazz);
+        }
+        return clazz;
+    }
+    
     @Override
     public String toString() {
         return "[BundleClassLoader] " + bundle;



Mime
View raw message