avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger DefaultLogTargetManager.java
Date Tue, 21 May 2002 10:04:18 GMT
donaldp     02/05/21 03:04:18

  Modified:    logger/src/java/org/apache/avalon/excalibur/logger
                        DefaultLogTargetManager.java
  Log:
  No need to be Contextualizable as never used context
  
  Revision  Changes    Path
  1.2       +3 -22     jakarta-avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/DefaultLogTargetManager.java
  
  Index: DefaultLogTargetManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/DefaultLogTargetManager.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DefaultLogTargetManager.java	4 Apr 2002 02:34:14 -0000	1.1
  +++ DefaultLogTargetManager.java	21 May 2002 10:04:18 -0000	1.2
  @@ -12,9 +12,6 @@
   import org.apache.avalon.framework.configuration.Configurable;
   import org.apache.avalon.framework.configuration.Configuration;
   import org.apache.avalon.framework.configuration.ConfigurationException;
  -import org.apache.avalon.framework.context.Context;
  -import org.apache.avalon.framework.context.ContextException;
  -import org.apache.avalon.framework.context.Contextualizable;
   import org.apache.avalon.framework.logger.AbstractLogEnabled;
   import org.apache.log.LogTarget;
   
  @@ -23,19 +20,16 @@
    * from a configuration file.
    *
    * @author <a href="mailto:giacomo@apache.org">Giacomo Pati</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/04/04 02:34:14 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/05/21 10:04:18 $
    * @since 4.0
    */
   public class DefaultLogTargetManager
       extends AbstractLogEnabled
  -    implements LogTargetManager, LogTargetFactoryManageable, Contextualizable, Configurable
  +    implements LogTargetManager, LogTargetFactoryManageable, Configurable
   {
       /** Map for ID to LogTarget mapping */
       final private Map m_targets = new HashMap();
   
  -    /** The context object */
  -    private Context m_context;
  -
       /** The LogTargetFactoryManager object */
       private LogTargetFactoryManager m_factoryManager;
   
  @@ -48,20 +42,7 @@
        */
       public final LogTarget getLogTarget( final String id )
       {
  -        final LogTarget logTarget = (LogTarget)m_targets.get( id );
  -        return logTarget;
  -    }
  -
  -    /**
  -     * Reads a context object.
  -     *
  -     * @param context The context object.
  -     * @throws ContextException if the context is malformed
  -     */
  -    public final void contextualize( final Context context )
  -        throws ContextException
  -    {
  -        m_context = context;
  +        return (LogTarget)m_targets.get( id );
       }
   
       /**
  
  
  

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