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 DeserializationContext.java SerializationContext.java
Date Wed, 01 Dec 2004 23:16:22 GMT
gawor       2004/12/01 15:16:22

  Modified:    java/src/org/apache/axis/encoding
                        DeserializationContext.java
                        SerializationContext.java
  Log:
  use the method cache to get the serializer/deserializer from class
  
  Revision  Changes    Path
  1.61      +5 -1      ws-axis/java/src/org/apache/axis/encoding/DeserializationContext.java
  
  Index: DeserializationContext.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/encoding/DeserializationContext.java,v
  retrieving revision 1.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- DeserializationContext.java	1 Nov 2004 14:07:35 -0000	1.60
  +++ DeserializationContext.java	1 Dec 2004 23:16:22 -0000	1.61
  @@ -29,6 +29,7 @@
   import org.apache.axis.utils.XMLUtils;
   import org.apache.axis.utils.JavaUtils;
   import org.apache.axis.utils.Messages;
  +import org.apache.axis.utils.cache.MethodCache;
   import org.apache.axis.schema.SchemaVersion;
   import org.apache.axis.components.logger.LogFactory;
   import org.apache.axis.message.IDResolver;
  @@ -499,7 +500,10 @@
               return dser;
   
           try {
  -            Method method = cls.getMethod(DESERIALIZER_METHOD, DESERIALIZER_CLASSES);
  +            Method method = 
  +                MethodCache.getInstance().getMethod(cls,
  +                                                    DESERIALIZER_METHOD, 
  +                                                    DESERIALIZER_CLASSES);     
               if (method != null) {
                   TypeDesc typedesc = TypeDesc.getTypeDescForClass(cls);
                   if (typedesc != null) {
  
  
  
  1.99      +6 -2      ws-axis/java/src/org/apache/axis/encoding/SerializationContext.java
  
  Index: SerializationContext.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/encoding/SerializationContext.java,v
  retrieving revision 1.98
  retrieving revision 1.99
  diff -u -r1.98 -r1.99
  --- SerializationContext.java	23 Nov 2004 23:30:08 -0000	1.98
  +++ SerializationContext.java	1 Dec 2004 23:16:22 -0000	1.99
  @@ -54,6 +54,7 @@
   import org.apache.axis.utils.Messages;
   import org.apache.axis.utils.NSStack;
   import org.apache.axis.utils.XMLUtils;
  +import org.apache.axis.utils.cache.MethodCache;
   import org.apache.axis.wsdl.symbolTable.SchemaUtils;
   import org.apache.axis.wsdl.symbolTable.SymbolTable;
   import org.apache.commons.logging.Log;
  @@ -1382,10 +1383,13 @@
       }
   
       private Serializer getSerializerFromClass(Class javaType, QName qname) {
  +        
           Serializer serializer = null;
           try {
  -            Method method = javaType.getMethod(
  -                    SERIALIZER_METHOD, SERIALIZER_CLASSES);
  +            Method method = 
  +                MethodCache.getInstance().getMethod(javaType,
  +                                                    SERIALIZER_METHOD,
  +                                                    SERIALIZER_CLASSES);
               if (method != null) {
                   serializer = (Serializer) method.invoke(null,
                       new Object[] {getEncodingStyle(), javaType, qname});
  
  
  

Mime
View raw message