avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pro...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress AbstractContainer.java
Date Thu, 13 Jun 2002 17:43:12 GMT
proyal      2002/06/13 10:43:12

  Modified:    fortress/src/java/org/apache/excalibur/fortress
                        AbstractContainer.java
  Log:
  Preserve the original name and location of the configuration to make
  debugging errors easier
  
  Revision  Changes    Path
  1.36      +9 -4      jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/AbstractContainer.java
  
  Index: AbstractContainer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/AbstractContainer.java,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- AbstractContainer.java	13 Jun 2002 17:24:51 -0000	1.35
  +++ AbstractContainer.java	13 Jun 2002 17:43:12 -0000	1.36
  @@ -170,15 +170,20 @@
       protected Configuration rewriteConfiguration( final Configuration configItem )
           throws ConfigurationException
       {
  -        DefaultConfiguration temp = new DefaultConfiguration( "component", "AbstractContainer-rewrite"
);
  +        DefaultConfiguration temp =
  +          new DefaultConfiguration( "component",
  +                                    "AbstractContainer-rewrite [name: " + configItem.getName()
  +                                    + ", location: " + configItem.getLocation() + "]" );
  +
           Class klass = m_roleManager.getClassForName( configItem.getName() );
           Class handlerKlass = m_roleManager.getHandlerClassForClass( klass );
           String role = m_roleManager.getRoleForClass( klass );
   
           if( null == klass )
           {
  -            throw new ConfigurationException( "No class found matching configuration name
" +
  -                                              "[name: " + configItem.getName() + ", location:
" + configItem.getLocation() + "]" );
  +            throw new ConfigurationException( "No class found matching configuration name
"
  +                                              + "[name: " + configItem.getName()
  +                                              + ", location: " + configItem.getLocation()
+ "]" );
           }
   
           temp.setAttribute( "role", role );
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message