avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: avalon-sandbox/meta/api/src/java/org/apache/avalon/meta/info Type.java
Date Thu, 10 Jul 2003 21:18:11 GMT
mcconnell    2003/07/10 14:18:11

  Modified:    meta/api/src/java/org/apache/avalon/meta/info Type.java
  Log:
  Update to use CategoryDescriptor.
  
  Revision  Changes    Path
  1.4       +9 -9      avalon-sandbox/meta/api/src/java/org/apache/avalon/meta/info/Type.java
  
  Index: Type.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/meta/api/src/java/org/apache/avalon/meta/info/Type.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Type.java	10 Jul 2003 21:07:36 -0000	1.3
  +++ Type.java	10 Jul 2003 21:18:11 -0000	1.4
  @@ -80,7 +80,7 @@
       private final ContextDescriptor m_context;
       private final ServiceDescriptor[] m_services;
       private final DependencyDescriptor[] m_dependencies;
  -    private final LoggerDescriptor[] m_loggers;
  +    private final CategoryDescriptor[] m_loggers;
       private final StageDescriptor[] m_stages;
       private final ExtensionDescriptor[] m_extensions;
   
  @@ -108,7 +108,7 @@
        *   dependencies, stages, or extensions argument is null
        */
       public Type( final InfoDescriptor descriptor,
  -                 final LoggerDescriptor[] loggers,
  +                 final CategoryDescriptor[] loggers,
                    final ContextDescriptor context,
                    final ServiceDescriptor[] services,
                    final DependencyDescriptor[] dependencies,
  @@ -141,7 +141,7 @@
        *   dependencies, stages, or extensions argument is null
        */
       public Type( final InfoDescriptor descriptor,
  -                 final LoggerDescriptor[] loggers,
  +                 final CategoryDescriptor[] loggers,
                    final ContextDescriptor context,
                    final ServiceDescriptor[] services,
                    final DependencyDescriptor[] dependencies,
  @@ -204,7 +204,7 @@
        *
        * @return the set of Logger that this Component will use.
        */
  -    public LoggerDescriptor[] getLoggers()
  +    public CategoryDescriptor[] getLoggers()
       {
           return m_loggers;
       }
  @@ -217,11 +217,11 @@
        */
       public boolean isaLogger( String name )
       {
  -        LoggerDescriptor[] loggers = getLoggers();
  -        for ( int i = 0; i < loggers.length; i++ )
  +        CategoryDescriptor[] loggers = getLoggers();
  +        for( int i = 0; i < loggers.length; i++ )
           {
  -            LoggerDescriptor logger = loggers[i];
  -            if ( logger.getName().equals( name ) )
  +            CategoryDescriptor logger = loggers[ i ];
  +            if( logger.getName().equals( name ) )
               {
                   return true;
               }
  
  
  

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


Mime
View raw message