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/tools/src/test/org/apache/avalon/meta MetaTestCase.java
Date Thu, 10 Jul 2003 21:22:27 GMT
mcconnell    2003/07/10 14:22:27

  Modified:    meta/api/src/java/org/apache/avalon/meta/info Type.java
               meta/impl/src/java/org/apache/avalon/meta/info/writer
                        XMLTypeWriter.java
               meta/tools/src/java/org/apache/avalon/meta/info/builder
                        TaggedTypeBuilder.java
               meta/tools/src/java/org/apache/avalon/meta/info/builder/tags
                        LoggerTag.java
               meta/tools/src/test/org/apache/avalon/meta MetaTestCase.java
  Log:
  Changed getLoggers() to getCategories()
  
  Revision  Changes    Path
  1.5       +3 -3      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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Type.java	10 Jul 2003 21:18:11 -0000	1.4
  +++ Type.java	10 Jul 2003 21:22:27 -0000	1.5
  @@ -204,7 +204,7 @@
        *
        * @return the set of Logger that this Component will use.
        */
  -    public CategoryDescriptor[] getLoggers()
  +    public CategoryDescriptor[] getCategories()
       {
           return m_loggers;
       }
  @@ -217,7 +217,7 @@
        */
       public boolean isaLogger( String name )
       {
  -        CategoryDescriptor[] loggers = getLoggers();
  +        CategoryDescriptor[] loggers = getCategories();
           for( int i = 0; i < loggers.length; i++ )
           {
               CategoryDescriptor logger = loggers[ i ];
  
  
  
  1.3       +2 -2      avalon-sandbox/meta/impl/src/java/org/apache/avalon/meta/info/writer/XMLTypeWriter.java
  
  Index: XMLTypeWriter.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/meta/impl/src/java/org/apache/avalon/meta/info/writer/XMLTypeWriter.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- XMLTypeWriter.java	10 Jul 2003 21:19:08 -0000	1.2
  +++ XMLTypeWriter.java	10 Jul 2003 21:22:27 -0000	1.3
  @@ -95,7 +95,7 @@
           writeDoctype( writer, "type" );
           writer.write( "\n\n<type>" );
           writeInfo( writer, type.getInfo() );
  -        writeLoggers( writer, type.getLoggers() );
  +        writeLoggers( writer, type.getCategories() );
           writeContext( writer, type.getContext() );
           writeServices( writer, type.getServices() );
           writeDependencies( writer, type.getDependencies() );
  
  
  
  1.3       +2 -2      avalon-sandbox/meta/tools/src/java/org/apache/avalon/meta/info/builder/TaggedTypeBuilder.java
  
  Index: TaggedTypeBuilder.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/meta/tools/src/java/org/apache/avalon/meta/info/builder/TaggedTypeBuilder.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TaggedTypeBuilder.java	10 Jul 2003 21:19:08 -0000	1.2
  +++ TaggedTypeBuilder.java	10 Jul 2003 21:22:27 -0000	1.3
  @@ -98,7 +98,7 @@
       {
           final InfoDescriptor info = buildInfo( javaClass );
           final ServiceDescriptor[] services = new ServicesTag( javaClass ).getServices();
  -        final CategoryDescriptor[] loggers = new LoggerTag( javaClass ).getLoggers();
  +        final CategoryDescriptor[] loggers = new LoggerTag( javaClass ).getCategories();
           final DependencyDescriptor[] dependencies = new DependencyTag( javaClass ).getDependencies();
           final StageDescriptor[] stages = new StageTag( javaClass ).getStages();
           final ExtensionDescriptor[] extensions = new ExtensionTag( javaClass ).getExtensions();
  
  
  
  1.3       +2 -2      avalon-sandbox/meta/tools/src/java/org/apache/avalon/meta/info/builder/tags/LoggerTag.java
  
  Index: LoggerTag.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/meta/tools/src/java/org/apache/avalon/meta/info/builder/tags/LoggerTag.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LoggerTag.java	10 Jul 2003 21:19:09 -0000	1.2
  +++ LoggerTag.java	10 Jul 2003 21:22:27 -0000	1.3
  @@ -97,7 +97,7 @@
       * LogEnabled interface.
       * @return the set of logger descriptos
       */
  -    public CategoryDescriptor[] getLoggers()
  +    public CategoryDescriptor[] getCategories()
       {
           final JavaMethod[] methods =
               getLifecycleMethods( "enableLogging", LOGGER_CLASS );
  
  
  
  1.3       +1 -1      avalon-sandbox/meta/tools/src/test/org/apache/avalon/meta/MetaTestCase.java
  
  Index: MetaTestCase.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/meta/tools/src/test/org/apache/avalon/meta/MetaTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MetaTestCase.java	10 Jul 2003 21:19:09 -0000	1.2
  +++ MetaTestCase.java	10 Jul 2003 21:22:27 -0000	1.3
  @@ -224,7 +224,7 @@
           Type type = m_secondary;
           assertTrue( "version", type.getInfo().getVersion().toString().equals( "2.4.0" )
);
           assertTrue( "name", type.getInfo().getName().equals( "secondary-component" ) );
  -        CategoryDescriptor[] loggers = type.getLoggers();
  +        CategoryDescriptor[] loggers = type.getCategories();
           if( loggers.length == 1 )
           {
               CategoryDescriptor logger = loggers[0];
  
  
  

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


Mime
View raw message