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/src/java/org/apache/avalon/meta/info InfoDescriptor.java
Date Fri, 27 Dec 2002 16:30:27 GMT
mcconnell    2002/12/27 08:30:27

  Modified:    meta/src/java/org/apache/avalon/meta/info
                        InfoDescriptor.java
  Log:
  Updated souce to eliminate ambigouse keyname usage.  Now reference classname.
  
  Revision  Changes    Path
  1.3       +6 -6      avalon-sandbox/meta/src/java/org/apache/avalon/meta/info/InfoDescriptor.java
  
  Index: InfoDescriptor.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/meta/src/java/org/apache/avalon/meta/info/InfoDescriptor.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- InfoDescriptor.java	11 Dec 2002 05:16:38 -0000	1.2
  +++ InfoDescriptor.java	27 Dec 2002 16:30:27 -0000	1.3
  @@ -96,26 +96,26 @@
        * Creation of a new component descriptor using a supplied name, key, version
        * and attribute set.
        * @param name the component name
  -     * @param key the implemetation key - typeically the classname
  +     * @param classname the implemetation classname
        * @param version the implementation version
        * @param attributes a set of attributes associated with the component type
        * @exception IllegalArgumentException if the implementation key is not a classname
        */
       public InfoDescriptor( final String name,
  -                                final String key,
  +                                final String classname,
                                   final Version version,
                                   final Properties attributes )
           throws IllegalArgumentException
       {
           super( attributes );
   
  -        if( key.indexOf( "/" ) > -1 )
  +        if( classname.indexOf( "/" ) > -1 )
           {
  -            throw new IllegalArgumentException( "classname: " + key );
  +            throw new IllegalArgumentException( "classname: " + classname );
           }
   
           m_name = name;
  -        m_classname = key;
  +        m_classname = classname;
           m_version = version;
       }
   
  
  
  

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