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/containerkit/src/java/org/apache/excalibur/containerkit/metainfo ComponentInfo.java
Date Tue, 02 Jul 2002 02:44:48 GMT
donaldp     2002/07/01 19:44:48

  Modified:    containerkit/src/java/org/apache/excalibur/containerkit/metainfo
                        ComponentInfo.java
  Log:
  Make it possible for ComponentInfo to hold metadata about loggers a component uses
  
  Revision  Changes    Path
  1.12      +18 -1     jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metainfo/ComponentInfo.java
  
  Index: ComponentInfo.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metainfo/ComponentInfo.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- ComponentInfo.java	28 Jun 2002 00:20:59 -0000	1.11
  +++ ComponentInfo.java	2 Jul 2002 02:44:48 -0000	1.12
  @@ -32,11 +32,13 @@
       private final ContextDescriptor m_context;
       private final ServiceDescriptor[] m_services;
       private final DependencyDescriptor[] m_dependencies;
  +    private final LoggerDescriptor[] m_loggers;
   
       /**
        * Basic constructor that takes as parameters all parts.
        */
       public ComponentInfo( final ComponentDescriptor descriptor,
  +                          final LoggerDescriptor[] loggers,
                             final ContextDescriptor context,
                             final ServiceDescriptor[] services,
                             final DependencyDescriptor[] dependencies )
  @@ -45,6 +47,10 @@
           {
               throw new NullPointerException( "descriptor" );
           }
  +        if( null == loggers )
  +        {
  +            throw new NullPointerException( "loggers" );
  +        }
           if( null == context )
           {
               throw new NullPointerException( "context" );
  @@ -58,6 +64,7 @@
               throw new NullPointerException( "dependencies" );
           }
           m_descriptor = descriptor;
  +        m_loggers = loggers;
           m_context = context;
           m_services = services;
           m_dependencies = dependencies;
  @@ -71,6 +78,16 @@
       public ComponentDescriptor getComponentDescriptor()
       {
           return m_descriptor;
  +    }
  +
  +    /**
  +     * Return the set of Logger that this Component will use.
  +     *
  +     * @return the set of Logger that this Component will use.
  +     */
  +    public LoggerDescriptor[] getLoggers()
  +    {
  +        return m_loggers;
       }
   
       /**
  
  
  

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