You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by dj...@apache.org on 2005/11/15 00:49:24 UTC

svn commit: r344271 - /geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/runtime/AbstractGBeanReference.java

Author: djencks
Date: Mon Nov 14 15:49:23 2005
New Revision: 344271

URL: http://svn.apache.org/viewcvs?rev=344271&view=rev
Log:
GERONIMO-1171 load reference types from the gbean class classloader, not the configuration classloader

Modified:
    geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/runtime/AbstractGBeanReference.java

Modified: geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/runtime/AbstractGBeanReference.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/runtime/AbstractGBeanReference.java?rev=344271&r1=344270&r2=344271&view=diff
==============================================================================
--- geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/runtime/AbstractGBeanReference.java (original)
+++ geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/runtime/AbstractGBeanReference.java Mon Nov 14 15:49:23 2005
@@ -111,7 +111,7 @@
 
         this.name = referenceInfo.getName();
         try {
-            this.referenceType = ClassLoading.loadClass(referenceInfo.getReferenceType(), gbeanInstance.getClassLoader());
+            this.referenceType = ClassLoading.loadClass(referenceInfo.getReferenceType(), gbeanInstance.getType().getClassLoader());
         } catch (ClassNotFoundException e) {
             throw new InvalidConfigurationException("Could not load Reference Type: " + getDescription());
         }
@@ -119,7 +119,7 @@
             throw new IllegalArgumentException("Proxy interface cannot be a final class: " + referenceType.getName());
         }
         try {
-            this.proxyType = ClassLoading.loadClass(referenceInfo.getProxyType(), gbeanInstance.getClassLoader());
+            this.proxyType = ClassLoading.loadClass(referenceInfo.getProxyType(), gbeanInstance.getType().getClassLoader());
         } catch (ClassNotFoundException e) {
             throw new InvalidConfigurationException("Could not load Proxy Type:" + getDescription());
         }