avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metainfo ComponentDescriptor.java
Date Tue, 25 Jun 2002 07:39:07 GMT
donaldp     2002/06/25 00:39:06

  Modified:    containerkit/src/java/org/apache/excalibur/containerkit/metainfo
                        ComponentDescriptor.java
  Log:
  Changed getClassname() to getImplementationKey() so components can be defined via mechanisms
other than class files
  
  Revision  Changes    Path
  1.16      +11 -11    jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metainfo/ComponentDescriptor.java
  
  Index: ComponentDescriptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metainfo/ComponentDescriptor.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ComponentDescriptor.java	25 Jun 2002 01:50:16 -0000	1.15
  +++ ComponentDescriptor.java	25 Jun 2002 07:39:06 -0000	1.16
  @@ -61,9 +61,9 @@
       private final String m_name;
   
       /**
  -     * The Classname of Component.
  +     * The implementation key for component (usually classname).
        */
  -    private final String m_classname;
  +    private final String m_implementationKey;
   
       /**
        * The version of component that descriptor describes.
  @@ -71,19 +71,19 @@
       private final Version m_version;
   
       public ComponentDescriptor( final String name,
  -                                final String classname,
  +                                final String implementationKey,
                                   final Version version,
                                   final Properties attributes )
       {
           super( attributes );
   
  -        if( classname.indexOf("/") > -1 )
  +        if( implementationKey.indexOf("/") > -1 )
           {
  -            throw new IllegalArgumentException( "classname: " + classname );
  +            throw new IllegalArgumentException( "implementationKey: " + implementationKey
);
           }
   
           m_name = name;
  -        m_classname = classname;
  +        m_implementationKey = implementationKey;
           m_version = version;
       }
   
  @@ -98,13 +98,13 @@
       }
   
       /**
  -     * Return the classname of component.
  +     * Return the implementation key for component (usually classname).
        *
  -     * @return the classname of component.
  +     * @return the implementation key for component (usually classname).
        */
  -    public String getClassname()
  +    public String getImplementationKey()
       {
  -        return m_classname;
  +        return m_implementationKey;
       }
   
       /**
  
  
  

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