summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.x/modules/interface-java/src/main
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-04-24 15:58:56 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-04-24 15:58:56 +0000
commitca3170396554a912e9dfd7bd3ff01d7307d8bdc7 (patch)
tree8d4cfe77b4609bdb9c9e39d3d816cf9eda189c7b /branches/sca-java-1.x/modules/interface-java/src/main
parentc572d6c4d9c68e64291c2d8527b19c3a18bd85fa (diff)
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
Diffstat (limited to 'branches/sca-java-1.x/modules/interface-java/src/main')
-rw-r--r--branches/sca-java-1.x/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceIntrospectorImpl.java25
1 files changed, 1 insertions, 24 deletions
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<XMLType> xmlDataType = new DataTypeImpl<XMLType>(
UNKNOWN_DATABINDING, paramType, genericParamTypes[i],xmlParamType);
ParameterMode mode = ParameterMode.IN;
- // Holder pattern. Physical types of Holder<T> classes are updated to <T> 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<T>, 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;
- }
}