summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbdaniel <bdaniel@13f79535-47bb-0310-9956-ffa450edef68>2010-08-10 01:41:12 +0000
committerbdaniel <bdaniel@13f79535-47bb-0310-9956-ffa450edef68>2010-08-10 01:41:12 +0000
commit349f135affedfc00d6efee6468b3981c244f1606 (patch)
tree8fe4b03ff7805e1eb78b21445ffb00b5747d575b
parent400454850c6a9fc060e75c6cd2b189b3273533b4 (diff)
JCA 11015 Mark interfaces remotable if @WebServiceProvider is on the implementation
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@983849 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/JAXWSProcessor.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/JAXWSProcessor.java b/sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/JAXWSProcessor.java
index dfa3ac0a56..585dee76ae 100644
--- a/sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/JAXWSProcessor.java
+++ b/sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/JAXWSProcessor.java
@@ -40,7 +40,6 @@ import org.apache.tuscany.sca.interfacedef.wsdl.WSDLInterface;
import org.apache.tuscany.sca.interfacedef.wsdl.WSDLInterfaceContract;
import org.apache.tuscany.sca.policy.Intent;
import org.apache.tuscany.sca.policy.PolicyFactory;
-import org.oasisopen.sca.annotation.Remotable;
/**
* Process JAXWS annotations and updates the component type accordingly
@@ -70,7 +69,11 @@ public class JAXWSProcessor extends BaseJavaClassVisitor {
}
if ( clazz.getAnnotation(WebServiceProvider.class) != null ) {
- // TODO Apply @Remotable to interfaces here
+ // If the implementation is annotated with @WebServiceProvider,
+ // make all service interfaces remotable
+ for ( Service s : type.getServices() ) {
+ s.getInterfaceContract().getInterface().setRemotable(true);
+ }
// JCA 11015
}