avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/src/java/org/apache/avalon/excalibur/logger DefaultLogTargetFactoryManager.java
Date Thu, 07 Mar 2002 23:06:28 GMT
colus       02/03/07 15:06:28

  Modified:    src/java/org/apache/avalon/excalibur/logger
                        DefaultLogTargetFactoryManager.java
  Log:
  Fixed wrong sequence of life cycle calls.
  
  Submitted By: Rajendra Ghorpade<RGhorpade@onebridge.de>
  
  Revision  Changes    Path
  1.7       +6 -6      jakarta-avalon-excalibur/src/java/org/apache/avalon/excalibur/logger/DefaultLogTargetFactoryManager.java
  
  Index: DefaultLogTargetFactoryManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/src/java/org/apache/avalon/excalibur/logger/DefaultLogTargetFactoryManager.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- DefaultLogTargetFactoryManager.java	9 Feb 2002 00:29:56 -0000	1.6
  +++ DefaultLogTargetFactoryManager.java	7 Mar 2002 23:06:28 -0000	1.7
  @@ -23,7 +23,7 @@
    * from a configuration file.
    *
    * @author <a href="mailto:giacomo@apache.org">Giacomo Pati</a>
  - * @version CVS $Revision: 1.6 $ $Date: 2002/02/09 00:29:56 $
  + * @version CVS $Revision: 1.7 $ $Date: 2002/03/07 23:06:28 $
    * @since 4.0
    */
   public class DefaultLogTargetFactoryManager
  @@ -119,11 +119,6 @@
                   ((LogEnabled) logTargetFactory).enableLogging( getLogger() );
               }
   
  -            if( logTargetFactory instanceof Configurable )
  -            {
  -                ((Configurable) logTargetFactory).configure( confs[i] );
  -            }
  -
               if( logTargetFactory instanceof Contextualizable )
               {
                   try
  @@ -134,6 +129,11 @@
                   {
                       throw new ConfigurationException( "cannot contextualize LogTargetFactory
" + factoryClass, ce );
                   }
  +            }
  +
  +            if( logTargetFactory instanceof Configurable )
  +            {
  +                ((Configurable) logTargetFactory).configure( confs[i] );
               }
   
               if( logTargetFactory instanceof LogTargetFactoryManageable )
  
  
  

--
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