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/encoding TypeMappingRegistry.java
Date Fri, 22 Jun 2001 13:07:13 GMT
gdaniels    01/06/22 06:07:13

  Modified:    java/src/org/apache/axis/encoding TypeMappingRegistry.java
  Log:
  Do the load() at init time.
  
  Print the data class when dumping, not just the descriptor.
  
  Revision  Changes    Path
  1.15      +5 -3      xml-axis/java/src/org/apache/axis/encoding/TypeMappingRegistry.java
  
  Index: TypeMappingRegistry.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/TypeMappingRegistry.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- TypeMappingRegistry.java	2001/06/21 17:02:47	1.14
  +++ TypeMappingRegistry.java	2001/06/22 13:07:13	1.15
  @@ -93,7 +93,7 @@
        * Init (ie. load settings...)
        */
       public void init() {
  -        // load();
  +       load();
       }
   
       class SerializerDescriptor implements Serializable {
  @@ -222,7 +222,7 @@
       
       public void save() {
           if (fileName == null) return;
  -
  +        
           try {
               FileOutputStream out = new FileOutputStream(fileName);
               Hashtable reg = new Hashtable();
  @@ -296,7 +296,9 @@
               java.util.Enumeration e = d.keys();
               while (e.hasMoreElements()) {
                   Object key = e.nextElement();
  -                out.println("    " + key + " => " + d.get(key));
  +                DeserializerDescriptor desc = (DeserializerDescriptor)d.get(key);
  +                String classname = (desc.cls != null) ? desc.cls.getName() : "null";
  +                out.println("    " + key + " => " + classname);
               }
           }
           if (parent != null)
  
  
  

Mime
View raw message