commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject cvs commit: jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/io BeanCreateRule.java BeanReader.java
Date Mon, 03 Jun 2002 20:51:08 GMT
jon         2002/06/03 13:51:08

  Modified:    betwixt/src/java/org/apache/commons/betwixt
                        XMLIntrospector.java
               betwixt/src/java/org/apache/commons/betwixt/io
                        BeanCreateRule.java BeanReader.java
  Log:
  more de-bugging.
  
  -jon
  
  Revision  Changes    Path
  1.28      +5 -4      jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/XMLIntrospector.java
  
  Index: XMLIntrospector.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/XMLIntrospector.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- XMLIntrospector.java	3 Jun 2002 18:37:56 -0000	1.27
  +++ XMLIntrospector.java	3 Jun 2002 20:51:08 -0000	1.28
  @@ -93,7 +93,7 @@
     * Later requests for the same class will return the cached value.</p>
     *
     * @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
  -  * @version $Id: XMLIntrospector.java,v 1.27 2002/06/03 18:37:56 jon Exp $
  +  * @version $Id: XMLIntrospector.java,v 1.28 2002/06/03 20:51:08 jon Exp $
     */
   public class XMLIntrospector {
   
  @@ -167,9 +167,10 @@
           associated with the bean.
           */
       public XMLBeanInfo introspect(Object bean) throws IntrospectionException {
  -        log.debug( "Introspecting..." );
  -        log.debug(bean);
  -        
  +        if (log.isDebugEnabled()) {
  +            log.debug( "Introspecting..." );
  +            log.debug(bean);
  +        }
           return introspect( bean.getClass() );
       }
       
  
  
  
  1.15      +4 -4      jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/io/BeanCreateRule.java
  
  Index: BeanCreateRule.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/io/BeanCreateRule.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- BeanCreateRule.java	3 Jun 2002 19:19:29 -0000	1.14
  +++ BeanCreateRule.java	3 Jun 2002 20:51:08 -0000	1.15
  @@ -5,7 +5,7 @@
    * version 1.1, a copy of which has been included with this distribution in
    * the LICENSE file.
    * 
  - * $Id: BeanCreateRule.java,v 1.14 2002/06/03 19:19:29 jon Exp $
  + * $Id: BeanCreateRule.java,v 1.15 2002/06/03 20:51:08 jon Exp $
    */
   package org.apache.commons.betwixt.io;
   
  @@ -33,7 +33,7 @@
     * from the betwixt XML metadata.</p>
     *
     * @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
  -  * @version $Revision: 1.14 $
  +  * @version $Revision: 1.15 $
     */
   public class BeanCreateRule extends Rule {
   
  @@ -243,7 +243,7 @@
                               Rule rule = new BeanCreateRule( childDescriptor, context, path
+ '/' );
                               digester.addRule( path, rule );
                               if ( log.isDebugEnabled() ) {
  -                                log.debug( "Added rule to path: "+ path + " rule: " + rule
);
  +                                log.debug( "Added rule to path1: "+ path + ", rule: " +
rule + ", class: " + beanClass.getName());
                               }
                           }
                       }
  @@ -292,7 +292,7 @@
           };
           digester.addRule( path, rule );
           if ( log.isDebugEnabled() ) {
  -            log.debug( "Added rule to path: "+ path + " rule: " + rule );
  +            log.debug( "Added rule to path2: "+ path + ", rule: " + rule + ", class: "
+ beanClass.getName());
           }
       }
   }
  
  
  
  1.8       +5 -3      jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/io/BeanReader.java
  
  Index: BeanReader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/betwixt/src/java/org/apache/commons/betwixt/io/BeanReader.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- BeanReader.java	28 May 2002 23:01:08 -0000	1.7
  +++ BeanReader.java	3 Jun 2002 20:51:08 -0000	1.8
  @@ -5,7 +5,7 @@
    * version 1.1, a copy of which has been included with this distribution in
    * the LICENSE file.
    * 
  - * $Id: BeanReader.java,v 1.7 2002/05/28 23:01:08 jstrachan Exp $
  + * $Id: BeanReader.java,v 1.8 2002/06/03 20:51:08 jon Exp $
    */
   package org.apache.commons.betwixt.io;
   
  @@ -34,7 +34,7 @@
   /** <p><code>BeanReader</code> reads a tree of beans from an XML document.</p>
     *
     * @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
  -  * @version $Revision: 1.7 $
  +  * @version $Revision: 1.8 $
     */
   public class BeanReader extends Digester {
   
  @@ -84,7 +84,9 @@
               ElementDescriptor elementDescriptor = xmlInfo.getElementDescriptor();     
  
   
               String path = elementDescriptor.getQualifiedName();
  -
  +            if (log.isTraceEnabled()) {
  +                log.trace("Added path: " + path + ", mapped to: " + beanClass.getName());
  +            }
               addBeanCreateRule( path, elementDescriptor, beanClass );
           }
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message