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 ga...@apache.org on 2004/12/06 07:38:23 UTC
cvs commit: ws-axis/java/src/org/apache/axis/message RPCParamTarget.java RPCHandler.java
gawor 2004/12/05 22:38:23
Modified: java/src/org/apache/axis/message RPCHandler.java
Added: java/src/org/apache/axis/message RPCParamTarget.java
Log:
specialized RPCParam target implementation to avoid reflection
Revision Changes Path
1.81 +2 -7 ws-axis/java/src/org/apache/axis/message/RPCHandler.java
Index: RPCHandler.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/message/RPCHandler.java,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -r1.80 -r1.81
--- RPCHandler.java 18 Aug 2004 16:19:01 -0000 1.80
+++ RPCHandler.java 6 Dec 2004 06:38:23 -0000 1.81
@@ -29,7 +29,6 @@
import org.apache.axis.encoding.DeserializationContext;
import org.apache.axis.encoding.Deserializer;
import org.apache.axis.encoding.DeserializerImpl;
-import org.apache.axis.encoding.MethodTarget;
import org.apache.axis.encoding.XMLType;
import org.apache.axis.soap.SOAPConstants;
import org.apache.axis.utils.JavaUtils;
@@ -244,9 +243,7 @@
// item not being added to the list
if (context.isNil(attributes)) {
Deserializer nilDSer = new DeserializerImpl();
- nilDSer.registerValueTarget(
- new MethodTarget(currentParam,
- RPCParam.getValueSetMethod()));
+ nilDSer.registerValueTarget(new RPCParamTarget(currentParam));
return (SOAPHandler) nilDSer;
}
@@ -293,9 +290,7 @@
dser.setDefaultType(type);
- dser.registerValueTarget(
- new MethodTarget(currentParam,
- RPCParam.getValueSetMethod()));
+ dser.registerValueTarget(new RPCParamTarget(currentParam));
if (log.isDebugEnabled()) {
log.debug("Exit: RPCHandler.onStartChild()");
1.1 ws-axis/java/src/org/apache/axis/message/RPCParamTarget.java
Index: RPCParamTarget.java
===================================================================
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.axis.message;
import org.apache.axis.encoding.Target;
import org.xml.sax.SAXException;
public class RPCParamTarget implements Target
{
private RPCParam param;
public RPCParamTarget(RPCParam param) {
this.param = param;
}
public void set(Object value) throws SAXException {
this.param.set(value);
}
}