axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/registries SupplierRegistry.java
Date Mon, 30 Apr 2001 05:24:47 GMT
gdaniels    01/04/29 22:24:47

  Modified:    java/src/org/apache/axis/registries SupplierRegistry.java
  Log:
  Add a little debug logging.
  
  Revision  Changes    Path
  1.5       +8 -0      xml-axis/java/src/org/apache/axis/registries/SupplierRegistry.java
  
  Index: SupplierRegistry.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/registries/SupplierRegistry.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SupplierRegistry.java	2001/03/22 14:49:04	1.4
  +++ SupplierRegistry.java	2001/04/30 05:24:47	1.5
  @@ -70,6 +70,8 @@
    * @author Doug Davis (dug@us.ibm.com)
    */
   public class SupplierRegistry implements HandlerRegistry {
  +    private static final boolean DEBUG_LOG = false;
  +    
       protected String     fileName;
       protected Hashtable  suppliers = null ;
       
  @@ -89,12 +91,18 @@
        * Add a new Handler to the registry.
        */
       public void add(String key, Handler handler) {
  +        if (DEBUG_LOG)
  +            System.out.println("Registry " + this + " adding '" + key +
  +                               "' (" + handler + ")");
           if ( suppliers == null ) suppliers = new Hashtable();
           suppliers.put( key, new SimpleSupplier(handler) );
           save();
       }
       
       public void add(String key, Supplier supplier) {
  +        if (DEBUG_LOG)
  +            System.out.println("Registry " + this + " adding '" + key +
  +                               "' (" + supplier + ")");
           if ( suppliers == null ) suppliers = new Hashtable();
           suppliers.put( key, supplier );
           save();
  
  
  

Mime
View raw message