axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/encoding/ser BaseDeserializerFactory.java BaseSerializerFactory.java
Date Sun, 14 Nov 2004 05:07:05 GMT
gawor       2004/11/13 21:07:04

  Modified:    java/src/org/apache/axis/encoding/ser
                        BaseDeserializerFactory.java
                        BaseSerializerFactory.java
  Log:
  optimizations: just create the common serializers/deserializer factories directly, no need
for reflection
  
  Revision  Changes    Path
  1.22      +19 -0     ws-axis/java/src/org/apache/axis/encoding/ser/BaseDeserializerFactory.java
  
  Index: BaseDeserializerFactory.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/encoding/ser/BaseDeserializerFactory.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- BaseDeserializerFactory.java	8 Apr 2004 13:09:05 -0000	1.21
  +++ BaseDeserializerFactory.java	14 Nov 2004 05:07:04 -0000	1.22
  @@ -198,6 +198,25 @@
               return null;
           }
   
  +        try {
  +            if (factory == BeanDeserializerFactory.class) {
  +                return new BeanDeserializerFactory(javaType, xmlType);
  +            } else if (factory == SimpleDeserializerFactory.class) {
  +                return new SimpleDeserializerFactory(javaType, xmlType);
  +            } else if (factory == EnumDeserializerFactory.class) {
  +                return new EnumDeserializerFactory(javaType, xmlType);
  +            } else if (factory == ElementDeserializerFactory.class) {
  +                return new ElementDeserializerFactory();
  +            } else if (factory == SimpleListDeserializerFactory.class) {
  +                return new SimpleListDeserializerFactory(javaType, xmlType);
  +            }
  +        } catch (Exception e) {
  +            if (log.isDebugEnabled()) {
  +                log.debug(org.apache.axis.utils.Messages.getMessage("exception00"), e);
  +            }
  +            return null;
  +        }
  +
           DeserializerFactory df = null;
           try {
               Method method = 
  
  
  
  1.30      +19 -0     ws-axis/java/src/org/apache/axis/encoding/ser/BaseSerializerFactory.java
  
  Index: BaseSerializerFactory.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/encoding/ser/BaseSerializerFactory.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- BaseSerializerFactory.java	8 Apr 2004 13:09:05 -0000	1.29
  +++ BaseSerializerFactory.java	14 Nov 2004 05:07:04 -0000	1.30
  @@ -229,6 +229,25 @@
               return null;
           }
   
  +        try {
  +            if (factory == BeanSerializerFactory.class) {
  +                return new BeanSerializerFactory(javaType, xmlType);
  +            } else if (factory == SimpleSerializerFactory.class) {
  +                return new SimpleSerializerFactory(javaType, xmlType);
  +            } else if (factory == EnumSerializerFactory.class) {
  +                return new EnumSerializerFactory(javaType, xmlType);
  +            } else if (factory == ElementSerializerFactory.class) {
  +                return new ElementSerializerFactory();
  +            } else if (factory == SimpleListSerializerFactory.class) {
  +                return new SimpleListSerializerFactory(javaType, xmlType);
  +            }
  +        } catch (Exception e) {
  +            if (log.isDebugEnabled()) {
  +                log.debug(org.apache.axis.utils.Messages.getMessage("exception00"), e);
  +            }
  +            return null;
  +        }
  +
           SerializerFactory sf = null;
           try {
               Method method = 
  
  
  

Mime
View raw message