You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by do...@apache.org on 2002/06/23 04:57:00 UTC

cvs commit: jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/infobuilder ComponentInfoBuilder.java

donaldp     2002/06/22 19:57:00

  Modified:    containerkit/src/java/org/apache/excalibur/containerkit/infobuilder
                        ComponentInfoBuilder.java
  Log:
  Block --> Component
  
  Revision  Changes    Path
  1.3       +7 -20     jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/infobuilder/ComponentInfoBuilder.java
  
  Index: ComponentInfoBuilder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/infobuilder/ComponentInfoBuilder.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ComponentInfoBuilder.java	23 Jun 2002 02:54:00 -0000	1.2
  +++ ComponentInfoBuilder.java	23 Jun 2002 02:57:00 -0000	1.3
  @@ -25,7 +25,7 @@
   import org.apache.excalibur.containerkit.metainfo.ServiceDesignator;
   
   /**
  - * A ComponentInfoBuilder is responsible for building <code>ComponentInfo</code>
  + * A ComponentInfoBuilder is responsible for building {@link ComponentInfo}
    * objects from Configuration objects. The format for Configuration object
    * is specified in the ComponentInfo specification.
    *
  @@ -42,7 +42,7 @@
        * Create a <code>ComponentInfo</code> object for specified classname from
        * specified configuration data.
        *
  -     * @param classname The classname of Block
  +     * @param classname The classname of Component
        * @param info the ComponentInfo configuration
        * @return the created ComponentInfo
        * @throws ConfigurationException if an error occurs
  @@ -102,7 +102,7 @@
        * A utility method to build an array of <code>DependencyDescriptor</code>
        * objects from specified configuraiton and classname.
        *
  -     * @param classname The classname of Block (used for logging purposes)
  +     * @param classname The classname of Component (used for logging purposes)
        * @param configuration the dependencies configuration
        * @return the created DependencyDescriptor
        * @throws ConfigurationException if an error occurs
  @@ -312,15 +312,11 @@
       }
   
       /**
  -     * A utility method to build a <code>ComponentDescriptor</code>
  +     * A utility method to build a {@link ComponentDescriptor}
        * object from specified configuraiton data and classname.
        *
  -     * <p>Note that if a &lt;block/&gt; section is not specified then a warning
  -     * is generated as previous versions of Phoenix did not require such sections.
  -     * In the future this section will be required.</p>
  -     *
  -     * @param classname The classname of Block (used to create descriptor)
  -     * @param component the Block Configuration
  +     * @param classname The classname of Component (used to create descriptor)
  +     * @param component the Component Configuration
        * @return the created ComponentDescriptor
        * @throws ConfigurationException if an error occurs
        */
  @@ -328,15 +324,6 @@
                                                             final Configuration component )
           throws ConfigurationException
       {
  -        if( 0 == component.getChildren().length )
  -        {
  -            final String message =
  -                REZ.getString( "missing-block", classname );
  -            getLogger().warn( message );
  -            System.err.println( message );
  -            return null;
  -        }
  -
           final String name = component.getChild( "name" ).getValue( null );
           final Version version = buildVersion( component.getChild( "version" ).getValue() );
           final Properties attributes =
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>