You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by mc...@apache.org on 2004/03/11 14:44:55 UTC

cvs commit: avalon/meta/tools/src/java/org/apache/avalon/meta/info/builder/tags ContextTag.java SchemaTag.java

mcconnell    2004/03/11 05:44:55

  Modified:    meta/tools/src/java/org/apache/avalon/meta/info/builder/tags
                        ContextTag.java SchemaTag.java
  Log:
  Update to enable constructor based declaration of context and configuration schema.
  
  Revision  Changes    Path
  1.3       +2 -2      avalon/meta/tools/src/java/org/apache/avalon/meta/info/builder/tags/ContextTag.java
  
  Index: ContextTag.java
  ===================================================================
  RCS file: /home/cvs/avalon/meta/tools/src/java/org/apache/avalon/meta/info/builder/tags/ContextTag.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ContextTag.java	21 Feb 2004 13:27:04 -0000	1.2
  +++ ContextTag.java	11 Mar 2004 13:44:55 -0000	1.3
  @@ -88,7 +88,7 @@
       }
   
      /**
  -    * Return an array of StageDescriptor instances based on declared 'stage' tags.
  +    * Return a single ContextDescriptor instance.
       * @return the context descriptors
       */
       public ContextDescriptor getContext()
  
  
  
  1.3       +8 -10     avalon/meta/tools/src/java/org/apache/avalon/meta/info/builder/tags/SchemaTag.java
  
  Index: SchemaTag.java
  ===================================================================
  RCS file: /home/cvs/avalon/meta/tools/src/java/org/apache/avalon/meta/info/builder/tags/SchemaTag.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SchemaTag.java	21 Feb 2004 13:27:04 -0000	1.2
  +++ SchemaTag.java	11 Mar 2004 13:44:55 -0000	1.3
  @@ -35,12 +35,6 @@
   public class SchemaTag extends AbstractTag
   {
       /**
  -     * The default logger class.
  -     */
  -    protected static final String CONFIGURATION_CLASS =
  -            "org.apache.avalon.framework.configuration.Configuration";
  -
  -    /**
        * The javadoc key for the logger tag.
        */
       protected static final String KEY = "configuration";
  @@ -63,8 +57,11 @@
       }
   
       /**
  -     * Return a schema descriptor string if present
  -     * @return the set of logger descriptos
  +     * Return a schema descriptor string if present else return a null
  +     * string.  The value returned corresponds to information derived from
  +     * the first avalon.configuration tag declared.
  +     *
  +     * @return the string identifying the configuration schema
        */
       public String getConfigurationSchema()
       {
  @@ -86,6 +83,7 @@
        */
       private void setMethods()
       {
  -        m_methods = getLifecycleMethods( "configure", CONFIGURATION_CLASS );
  +        return findTaggedMethods( 
  +          getJavaClass(), getNS() + Tags.DELIMITER + KEY );
       }
   }
  
  
  

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