You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by gd...@apache.org on 2001/04/30 07:24:47 UTC

cvs commit: xml-axis/java/src/org/apache/axis/registries SupplierRegistry.java

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();