From ca3170396554a912e9dfd7bd3ff01d7307d8bdc7 Mon Sep 17 00:00:00 2001 From: rfeng Date: Fri, 24 Apr 2009 15:58:56 +0000 Subject: Move the JAX-WS holder testing logic to interface-java-jaxws git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@768341 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/impl/JavaInterfaceIntrospectorImpl.java | 25 +--------------------- 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'branches/sca-java-1.x/modules/interface-java/src') diff --git a/branches/sca-java-1.x/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceIntrospectorImpl.java b/branches/sca-java-1.x/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceIntrospectorImpl.java index bfada23663..91f946da47 100644 --- a/branches/sca-java-1.x/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceIntrospectorImpl.java +++ b/branches/sca-java-1.x/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceIntrospectorImpl.java @@ -33,7 +33,6 @@ import java.util.Map; import java.util.Set; import javax.xml.namespace.QName; -import javax.xml.ws.Holder; import org.apache.tuscany.sca.interfacedef.ConversationSequence; import org.apache.tuscany.sca.interfacedef.DataType; @@ -239,14 +238,7 @@ public class JavaInterfaceIntrospectorImpl { DataTypeImpl xmlDataType = new DataTypeImpl( UNKNOWN_DATABINDING, paramType, genericParamTypes[i],xmlParamType); ParameterMode mode = ParameterMode.IN; - // Holder pattern. Physical types of Holder classes are updated to to aid in transformations. - if ( Holder.class == paramType ) { - Type firstActual = getFirstActualType( genericParamTypes[ i ] ); - if ( firstActual != null ) { - xmlDataType.setPhysical( (Class)firstActual ); - mode = ParameterMode.INOUT; - } - } + paramDataTypes.add( xmlDataType); operation.getParameterModes().add(mode); } @@ -281,19 +273,4 @@ public class JavaInterfaceIntrospectorImpl { return operations; } - /** - * Given a Class, returns T, otherwise null. - * @param testClass - * @return - */ - protected static Type getFirstActualType(Type genericType) { - if (genericType instanceof ParameterizedType) { - ParameterizedType pType = (ParameterizedType)genericType; - Type[] actualTypes = pType.getActualTypeArguments(); - if ((actualTypes != null) && (actualTypes.length > 0)) { - return actualTypes[0]; - } - } - return null; - } } -- cgit v1.2.3