avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-phoenix/src/java/org/apache/phoenix/engine/phases StartupPhase.java
Date Mon, 16 Apr 2001 08:02:32 GMT
donaldp     01/04/16 01:02:32

  Modified:    src/java/org/apache/phoenix/engine/phases StartupPhase.java
  Log:
  Used LogManager to aquire Logger for blocks rather than relative to phases logger.
  
  Revision  Changes    Path
  1.6       +7 -3      jakarta-avalon-phoenix/src/java/org/apache/phoenix/engine/phases/StartupPhase.java
  
  Index: StartupPhase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/phoenix/engine/phases/StartupPhase.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- StartupPhase.java	2001/04/15 13:29:58	1.5
  +++ StartupPhase.java	2001/04/16 08:02:32	1.6
  @@ -7,7 +7,6 @@
    */
   package org.apache.phoenix.engine.phases;
   
  -
   import java.io.File;
   import org.apache.avalon.AbstractLoggable;
   import org.apache.avalon.ComponentManager;
  @@ -30,7 +29,6 @@
   import org.apache.avalon.configuration.Configurable;
   import org.apache.avalon.configuration.Configuration;
   import org.apache.avalon.util.thread.ThreadContext;
  -import org.apache.phoenix.engine.facilities.ThreadManager;
   import org.apache.phoenix.Block;
   import org.apache.phoenix.BlockContext;
   import org.apache.phoenix.engine.SarContextResources;
  @@ -40,6 +38,8 @@
   import org.apache.phoenix.engine.blocks.RoleEntry;
   import org.apache.phoenix.engine.facilities.ClassLoaderManager;
   import org.apache.phoenix.engine.facilities.ConfigurationRepository;
  +import org.apache.phoenix.engine.facilities.LogManager;
  +import org.apache.phoenix.engine.facilities.ThreadManager;
   import org.apache.phoenix.metainfo.BlockInfo;
   import org.apache.phoenix.metainfo.BlockUtil;
   import org.apache.phoenix.metainfo.ServiceDescriptor;
  @@ -55,6 +55,7 @@
       private ClassLoader                 m_classLoader;
       private ConfigurationRepository     m_repository;
       private ThreadManager               m_threadManager;
  +    private LogManager                  m_logManager;
   
       ///Factory used to build instance of Block
       private Factory                     m_factory;
  @@ -99,6 +100,9 @@
   
           m_repository = (ConfigurationRepository)componentManager.
               lookup( "org.apache.phoenix.engine.facilities.ConfigurationRepository" );
  +
  +        m_logManager = (LogManager)componentManager.
  +            lookup( "org.apache.phoenix.engine.facilities.LogManager" );
       }
   
       /**
  @@ -134,7 +138,7 @@
               if( object instanceof Loggable )
               {
                   getLogger().debug( "Pre-Loggable Stage" );
  -                ((Loggable)object).setLogger( getLogger().getChildLogger( name ) );
  +                ((Loggable)object).setLogger( m_logManager.getLogger( name ) );
                   getLogger().debug( "Loggable successful." );
               }
   
  
  
  

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


Mime
View raw message