geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r224426 - /geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/runtime/AbstractGBeanReference.java
Date Sat, 23 Jul 2005 00:30:23 GMT
Author: djencks
Date: Fri Jul 22 17:27:34 2005
New Revision: 224426

URL: http://svn.apache.org/viewcvs?rev=224426&view=rev
Log:
marginally clearer error message

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=224426&r1=224425&r2=224426&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
Fri Jul 22 17:27:34 2005
@@ -113,7 +113,7 @@
         try {
             this.referenceType = ClassLoading.loadClass(referenceInfo.getReferenceType(),
gbeanInstance.getClassLoader());
         } catch (ClassNotFoundException e) {
-            throw new InvalidConfigurationException("Could not load reference proxy interface
class:" + getDescription());
+            throw new InvalidConfigurationException("Could not load Reference Type: " + getDescription());
         }
         if (Modifier.isFinal(referenceType.getModifiers())) {
             throw new IllegalArgumentException("Proxy interface cannot be a final class:
" + referenceType.getName());
@@ -121,7 +121,7 @@
         try {
             this.proxyType = ClassLoading.loadClass(referenceInfo.getProxyType(), gbeanInstance.getClassLoader());
         } catch (ClassNotFoundException e) {
-            throw new InvalidConfigurationException("Could not load proxy class:" + getDescription());
+            throw new InvalidConfigurationException("Could not load Proxy Type:" + getDescription());
         }
 
         if (referenceInfo.getSetterName() != null) {
@@ -277,9 +277,9 @@
     }
 
     protected final String getDescription() {
-        return "GBeanInstance: " + gbeanInstance.getName() +
-                ", Reference Name: " + getName() +
-                ", Reference Type: " + getReferenceType() +
-                ", Proxy Type: " + getProxy();
+        return "\n    GBeanInstance: " + gbeanInstance.getName() +
+                "\n    Reference Name: " + getName() +
+                "\n    Reference Type: " + referenceInfo.getReferenceType() +
+                "\n    Proxy Type: " + referenceInfo.getProxyType();
     }
 }



Mime
View raw message