avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metadata ComponentMetaData.java
Date Sat, 29 Jun 2002 13:34:36 GMT
mcconnell    2002/06/29 06:34:36

  Modified:    containerkit/src/java/org/apache/excalibur/containerkit/metadata
                        ComponentMetaData.java
  Log:
  updated to provide support for automatically naming (needed when creating implicit metadata)
  
  Revision  Changes    Path
  1.7       +6 -3      jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metadata/ComponentMetaData.java
  
  Index: ComponentMetaData.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metadata/ComponentMetaData.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ComponentMetaData.java	25 Jun 2002 07:39:57 -0000	1.6
  +++ ComponentMetaData.java	29 Jun 2002 13:34:36 -0000	1.7
  @@ -67,7 +67,11 @@
       {
           if( null == name )
           {
  -            throw new NullPointerException( "name" );
  +            m_name = "" + System.identityHashCode( this );
  +        }
  +        else
  +        {
  +            m_name = name;
           }
           if( null == dependencies )
           {
  @@ -78,7 +82,6 @@
               throw new NullPointerException( "componentInfo" );
           }
   
  -        m_name = name;
           m_dependencies = dependencies;
           m_parameters = parameters;
           m_configuration = configuration;
  
  
  

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