cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components ExtendedComponentSelector.java
Date Fri, 26 Apr 2002 06:43:22 GMT
cziegeler    02/04/25 23:43:22

  Modified:    src/java/org/apache/cocoon/components
                        ExtendedComponentSelector.java
  Log:
  Fixing hasComponent() bug
  
  Revision  Changes    Path
  1.2       +10 -1     xml-cocoon2/src/java/org/apache/cocoon/components/ExtendedComponentSelector.java
  
  Index: ExtendedComponentSelector.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/ExtendedComponentSelector.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ExtendedComponentSelector.java	4 Mar 2002 18:16:45 -0000	1.1
  +++ ExtendedComponentSelector.java	26 Apr 2002 06:43:22 -0000	1.2
  @@ -68,7 +68,7 @@
    * and accepts a wider variety of configurations.
    *
    * @author <a href="mailto:sylvain@apache.org">Sylvain Wallez</a>
  - * @version CVS $Id: ExtendedComponentSelector.java,v 1.1 2002/03/04 18:16:45 sylvain Exp
$
  + * @version CVS $Id: ExtendedComponentSelector.java,v 1.2 2002/04/26 06:43:22 cziegeler
Exp $
    */
   
   public class ExtendedComponentSelector extends ExcaliburComponentSelector {
  @@ -316,4 +316,13 @@
               super.release(component);
           }
       }
  +
  +    public boolean hasComponent(Object hint) {
  +        boolean exists = super.hasComponent( hint );
  +        if ( !exists && this.parentSelector != null ) {
  +            exists = this.parentSelector.hasComponent( hint );
  +        }
  +        return exists;
  +    }
  +
   }
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message