donaldp     2002/07/01 19:26:00

  Added:       containerkit/src/java/org/apache/excalibur/containerkit/metainfo
                        LoggerDescriptor.java
  Log:
  Add descriptor for Logger
  
  Revision  Changes    Path
  1.1                  
jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metainfo/LoggerDescriptor.java
  
  Index: LoggerDescriptor.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.excalibur.containerkit.metainfo;
  
  import java.util.Properties;
  
  /**
   * A descriptor describing the Loggers that the Component
   * will use. The name of each Logger is relative to the
   * Logger passed to the component (namespace separator is '.').
   * "" names root logger.
   *
   * <p>Also associated with each Logger is a set of arbitrary
   * attributes that can be used to store extra information
   * about Logger requirements.</p>
   *
   * @author <a href="mailto:[EMAIL PROTECTED]";>Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/07/02 02:26:00 $
   */
  public class LoggerDescriptor
      extends FeatureDescriptor
  {
      private final String m_name;
  
      /**
       * Create a descriptor for Logger.
       *
       * @exception NullPointerException if name argument is null
       */
      public LoggerDescriptor( final String name,
                               final Properties attributes )
      {
          super( attributes );
          if( null == name )
          {
              throw new NullPointerException( "name" );
          }
  
          m_name = name;
      }
  
      /**
       * Return the name of logger.
       *
       * @return the name of Logger.
       */
      public String getName()
      {
          return m_name;
      }
  }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to