geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r807317 - /geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/BeanRecipe.java
Date Mon, 24 Aug 2009 17:45:58 GMT
Author: gawor
Date: Mon Aug 24 17:45:58 2009
New Revision: 807317

URL: http://svn.apache.org/viewvc?rev=807317&view=rev
Log:
improve error messages slightly

Modified:
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/BeanRecipe.java

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/BeanRecipe.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/BeanRecipe.java?rev=807317&r1=807316&r2=807317&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/BeanRecipe.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/BeanRecipe.java
Mon Aug 24 17:45:58 2009
@@ -209,9 +209,9 @@
                     throw new ComponentDefinitionException("Error when instanciating bean
" + getName() + " of class " + getType(), getRealCause(e));
                 }
             } else if (matches.size() == 0) {
-                throw new ComponentDefinitionException("Unable to find a matching factory
method " + factoryMethod + " on class " + factoryObj.getClass() + " for arguments " + args
+ " when instanciating bean " + getName());
+                throw new ComponentDefinitionException("Unable to find a matching factory
method " + factoryMethod + " on class " + factoryObj.getClass().getName() + " for arguments
" + args + " when instanciating bean " + getName());
             } else {
-                throw new ComponentDefinitionException("Multiple matching factory methods
" + factoryMethod + " found on class " + factoryObj.getClass() + " for arguments " + args
+ " when instanciating bean " + getName() + ": " + matches.keySet());
+                throw new ComponentDefinitionException("Multiple matching factory methods
" + factoryMethod + " found on class " + factoryObj.getClass().getName() + " for arguments
" + args + " when instanciating bean " + getName() + ": " + matches.keySet());
             }
         } else if (factoryMethod != null) {
             // Map of matching methods
@@ -224,9 +224,9 @@
                     throw new ComponentDefinitionException("Error when instanciating bean
" + getName() + " of class " + getType(), getRealCause(e));
                 }
             } else if (matches.size() == 0) {
-                throw new ComponentDefinitionException("Unable to find a matching factory
method " + factoryMethod + " on class " + getType() + " for arguments " + args + " when instanciating
bean " + getName());
+                throw new ComponentDefinitionException("Unable to find a matching factory
method " + factoryMethod + " on class " + getType().getName() + " for arguments " + args +
" when instanciating bean " + getName());
             } else {
-                throw new ComponentDefinitionException("Multiple matching factory methods
" + factoryMethod + " found on class " + getType() + " for arguments " + args + " when instanciating
bean " + getName() + ": " + matches.keySet());
+                throw new ComponentDefinitionException("Multiple matching factory methods
" + factoryMethod + " found on class " + getType().getName() + " for arguments " + args +
" when instanciating bean " + getName() + ": " + matches.keySet());
             }
         } else {
             if (getType() == null) {
@@ -242,9 +242,9 @@
                     throw new ComponentDefinitionException("Error when instanciating bean
" + getName() + " of class " + getType(), getRealCause(e));
                 }
             } else if (matches.size() == 0) {
-                throw new ComponentDefinitionException("Unable to find a matching constructor
on class " + getType() + " for arguments " + args + " when instanciating bean " + getName());
+                throw new ComponentDefinitionException("Unable to find a matching constructor
on class " + getType().getName() + " for arguments " + args + " when instanciating bean "
+ getName());
             } else {
-                throw new ComponentDefinitionException("Multiple matching constructors found
on class " + getType() + " for arguments " + args + " when instanciating bean " + getName()
+ ": " + matches.keySet());
+                throw new ComponentDefinitionException("Multiple matching constructors found
on class " + getType().getName() + " for arguments " + args + " when instanciating bean "
+ getName() + ": " + matches.keySet());
             }
         }
         



Mime
View raw message