avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/component/src/java/org/apache/avalon/excalibur/component ExcaliburComponentSelector.java
Date Tue, 04 Jun 2002 08:02:16 GMT
cziegeler    2002/06/04 01:02:16

  Modified:    component/src/java/org/apache/avalon/excalibur/component
                        ExcaliburComponentSelector.java
  Log:
  ComponentSelector checks for hasComponent without a select-release cycle
  
  Revision  Changes    Path
  1.6       +3 -3      jakarta-avalon-excalibur/component/src/java/org/apache/avalon/excalibur/component/ExcaliburComponentSelector.java
  
  Index: ExcaliburComponentSelector.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/component/src/java/org/apache/avalon/excalibur/component/ExcaliburComponentSelector.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ExcaliburComponentSelector.java	2 Jun 2002 06:03:01 -0000	1.5
  +++ ExcaliburComponentSelector.java	4 Jun 2002 08:02:16 -0000	1.6
  @@ -33,7 +33,7 @@
    *
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
    * @author <a href="mailto:paul@luminas.co.uk">Paul Russell</a>
  - * @version CVS $Revision: 1.5 $ $Date: 2002/06/02 06:03:01 $
  + * @version CVS $Revision: 1.6 $ $Date: 2002/06/04 08:02:16 $
    * @since 4.0
    */
   public class ExcaliburComponentSelector
  @@ -181,8 +181,8 @@
   
           try
           {
  -            this.release( this.select( hint ) );
  -            exists = true;
  +            ComponentHandler handler = (ComponentHandler)m_componentHandlers.get( hint
);
  +            exists = (handler != null);
           }
           catch( Throwable t )
           {
  
  
  

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