geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r344271 - /geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/runtime/AbstractGBeanReference.java
Date Mon, 14 Nov 2005 23:49:24 GMT
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());
         }



Mime
View raw message