Skip to content

Commit

Permalink
Minor typos fixes
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/aries/trunk@1421114 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
gnodet committed Dec 13, 2012
1 parent b069aa4 commit 2cd0785
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -312,7 +312,7 @@ private Object getInstance() throws ComponentDefinitionException {
Map.Entry<Method, List<Object>> match = matches.entrySet().iterator().next(); Map.Entry<Method, List<Object>> match = matches.entrySet().iterator().next();
instance = invoke(match.getKey(), null, match.getValue().toArray()); instance = invoke(match.getKey(), null, match.getValue().toArray());
} catch (Throwable e) { } catch (Throwable e) {
throw new ComponentDefinitionException("Error when instanciating bean " + getName() + " of class " + getType(), getRealCause(e)); throw new ComponentDefinitionException("Error when instantiating bean " + getName() + " of class " + getType(), getRealCause(e));
} }
} else if (matches.size() == 0) { } else if (matches.size() == 0) {
throw new ComponentDefinitionException("Unable to find a matching factory method " + factoryMethod + " on class " + getType().getName() + " 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());
Expand All @@ -330,7 +330,7 @@ private Object getInstance() throws ComponentDefinitionException {
Map.Entry<Constructor, List<Object>> match = matches.entrySet().iterator().next(); Map.Entry<Constructor, List<Object>> match = matches.entrySet().iterator().next();
instance = newInstance(match.getKey(), match.getValue().toArray()); instance = newInstance(match.getKey(), match.getValue().toArray());
} catch (Throwable e) { } catch (Throwable e) {
throw new ComponentDefinitionException("Error when instanciating bean " + getName() + " of class " + getType(), getRealCause(e)); throw new ComponentDefinitionException("Error when instantiating bean " + getName() + " of class " + getType(), getRealCause(e));
} }
} else if (matches.size() == 0) { } else if (matches.size() == 0) {
throw new ComponentDefinitionException("Unable to find a matching constructor on class " + getType().getName() + " 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());
Expand Down Expand Up @@ -711,7 +711,7 @@ private void runBeanProcInit(Method initMethod, Object obj){
try { try {
invoke(initMethod, obj, (Object[]) null); invoke(initMethod, obj, (Object[]) null);
} catch (Throwable t) { } catch (Throwable t) {
throw new ComponentDefinitionException("Unable to intialize bean " + getName(), getRealCause(t)); throw new ComponentDefinitionException("Unable to initialize bean " + getName(), getRealCause(t));
} }
} }
} }
Expand Down

0 comments on commit 2cd0785

Please sign in to comment.