You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by bl...@apache.org on 2003/04/07 22:19:10 UTC

cvs commit: avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/impl DefaultContainer.java

bloritsch    2003/04/07 13:19:09

  Modified:    fortress/src/java/org/apache/avalon/fortress/impl
                        DefaultContainer.java
  Log:
  Update default container to output log messages for each component read
  
  Revision  Changes    Path
  1.10      +13 -3     avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/impl/DefaultContainer.java
  
  Index: DefaultContainer.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/impl/DefaultContainer.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- DefaultContainer.java	22 Mar 2003 12:46:33 -0000	1.9
  +++ DefaultContainer.java	7 Apr 2003 20:19:08 -0000	1.10
  @@ -137,9 +137,11 @@
       private String getClassname( final Configuration config )
           throws ConfigurationException
       {
  +        String className = null;
  +        
           if( "component".equals( config.getName() ) )
           {
  -            return config.getAttribute( "class" );
  +            className = config.getAttribute( "class" );
           }
           else
           {
  @@ -150,8 +152,16 @@
                       "[name: " + config.getName() + ", location: " + config.getLocation() + "]";
                   throw new ConfigurationException( message );
               }
  -            return roleEntry.getComponentClass().getName();
  +            
  +            className = roleEntry.getComponentClass().getName();
           }
  +        
  +        if (getLogger().isDebugEnabled())
  +        {
  +            getLogger().debug("Configuration processed for: " + className);
  +        }
  +        
  +        return className;
       }
   
       /**
  
  
  

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