You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by un...@apache.org on 2003/10/27 18:36:18 UTC

cvs commit: cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/components/source/impl AbstractConfigurableSourceDescriptor.java AbstractConfigurableSourceInspector.java

unico       2003/10/27 09:36:18

  Modified:    src/blocks/repository/java/org/apache/cocoon/components/source/impl
                        AbstractConfigurableSourceDescriptor.java
                        AbstractConfigurableSourceInspector.java
  Log:
  add debug logging
  
  Revision  Changes    Path
  1.2       +8 -0      cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/components/source/impl/AbstractConfigurableSourceDescriptor.java
  
  Index: AbstractConfigurableSourceDescriptor.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/components/source/impl/AbstractConfigurableSourceDescriptor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AbstractConfigurableSourceDescriptor.java	27 Oct 2003 09:30:07 -0000	1.1
  +++ AbstractConfigurableSourceDescriptor.java	27 Oct 2003 17:36:18 -0000	1.2
  @@ -67,6 +67,10 @@
           throws SourceException {
           
           if (handlesProperty(namespace,name)) {
  +            if (getLogger().isDebugEnabled()) {
  +                getLogger().debug("Removing property " + namespace + "#" 
  +                    + name + " from source " + source.getURI());
  +            }
               doRemoveSourceProperty(source,namespace,name);
           }
       }
  @@ -75,6 +79,10 @@
           throws SourceException {
           
           if (handlesProperty(property.getNamespace(),property.getName())) {
  +            if (getLogger().isDebugEnabled()) {
  +                getLogger().debug("Setting property " + property.getNamespace() + "#" 
  +                    + property.getName() + " on source " + source.getURI());
  +            }
               doSetSourceProperty(source,property);
           }
       }
  
  
  
  1.2       +8 -1      cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/components/source/impl/AbstractConfigurableSourceInspector.java
  
  Index: AbstractConfigurableSourceInspector.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/components/source/impl/AbstractConfigurableSourceInspector.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AbstractConfigurableSourceInspector.java	27 Oct 2003 09:30:07 -0000	1.1
  +++ AbstractConfigurableSourceInspector.java	27 Oct 2003 17:36:18 -0000	1.2
  @@ -102,7 +102,10 @@
               int index = property.indexOf('#');
               String namespace = property.substring(0,index);
               String name      = property.substring(index+1);
  -            result.add(getSourceProperty(source,namespace,name));
  +            SourceProperty sp = getSourceProperty(source,namespace,name);
  +            if (sp != null) {
  +                result.add(sp);
  +            }
           }
           return (SourceProperty[]) result.toArray(new SourceProperty[result.size()]);
       }
  @@ -111,6 +114,10 @@
           throws SourceException {
           
           if (handlesProperty(namespace,name)) {
  +            if (getLogger().isDebugEnabled()) {
  +                getLogger().debug("Getting property " + namespace + "#" 
  +                    + name + " for source " + source.getURI());
  +            }
               return doGetSourceProperty(source,namespace,name);
           }
           return null;