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-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/datasource DefaultDataSourceSelector.java
Date Mon, 20 May 2002 04:27:48 GMT
colus       02/05/19 21:27:47

  Modified:    src/java/org/apache/avalon/cornerstone/blocks/datasource
                        DefaultDataSourceSelector.java
  Log:
  Do not support Logaable DataSourceComponent;
  Think about ContainerUtil.
  
  Revision  Changes    Path
  1.20      +3 -9      jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/datasource/DefaultDataSourceSelector.java
  
  Index: DefaultDataSourceSelector.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/datasource/DefaultDataSourceSelector.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- DefaultDataSourceSelector.java	18 May 2002 13:30:08 -0000	1.19
  +++ DefaultDataSourceSelector.java	20 May 2002 04:27:47 -0000	1.20
  @@ -18,10 +18,8 @@
   import org.apache.avalon.framework.component.ComponentException;
   import org.apache.avalon.framework.configuration.Configurable;
   import org.apache.avalon.framework.configuration.Configuration;
  -import org.apache.avalon.framework.logger.AbstractLoggable;
  +import org.apache.avalon.framework.logger.AbstractLogEnabled;
   import org.apache.avalon.framework.logger.LogEnabled;
  -import org.apache.avalon.framework.logger.LogKitLogger;
  -import org.apache.avalon.framework.logger.Loggable;
   
   /**
    * The Default implementation for DataSourceSelector.
  @@ -49,7 +47,7 @@
    * @author <a href="mailto:colus@apache.org">Eung-ju Park</a>
    */
   public class DefaultDataSourceSelector
  -    extends AbstractLoggable
  +    extends AbstractLogEnabled
       implements DataSourceSelector, Configurable, Initializable, Disposable
   {
       private Configuration m_configuration;
  @@ -101,11 +99,7 @@
   
               if( component instanceof LogEnabled )
               {
  -                ( (LogEnabled)component ).enableLogging( new LogKitLogger( getLogger().getChildLogger(
name ) ) );
  -            }
  -            else if( component instanceof Loggable )
  -            {
  -                ( (Loggable)component ).setLogger( getLogger().getChildLogger( name ) );
  +                setupLogger( component, name );
               }
               component.configure( dataSourceConf );
               m_dataSources.put( name, component );
  
  
  

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