summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/implementation-java/src
diff options
context:
space:
mode:
authorvamsic007 <vamsic007@13f79535-47bb-0310-9956-ffa450edef68>2008-08-27 09:26:06 +0000
committervamsic007 <vamsic007@13f79535-47bb-0310-9956-ffa450edef68>2008-08-27 09:26:06 +0000
commit072a14b149051d36990d667a6feaf3c01ed47da6 (patch)
treeeaea6107a99224971737c195695957ac0922936f /java/sca/modules/implementation-java/src
parentfc25f07e99aacbed70b11936de5e3a537b87fa0a (diff)
TUSCANY-2513 Java intfs with @WebService should be treated like @Remotable intfs wrt calculation of services implemented by a Java implementation
o Takes care of the case where the implementation class has an empty @Service annotation git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@689426 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/implementation-java/src')
-rw-r--r--java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicPojoProcessor.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicPojoProcessor.java b/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicPojoProcessor.java
index ff5be90889..b7f6748ed2 100644
--- a/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicPojoProcessor.java
+++ b/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicPojoProcessor.java
@@ -37,6 +37,8 @@ import java.util.List;
import java.util.Map;
import java.util.Set;
+import javax.jws.WebService;
+
import org.apache.tuscany.sca.assembly.AssemblyFactory;
import org.apache.tuscany.sca.assembly.Contract;
import org.apache.tuscany.sca.assembly.Multiplicity;
@@ -96,7 +98,7 @@ public class HeuristicPojoProcessor extends BaseJavaClassVisitor {
*/
Set<Class> interfaces = getAllInterfaces(clazz);
for (Class<?> i : interfaces) {
- if (i.isAnnotationPresent(Remotable.class)) {
+ if (i.isAnnotationPresent(Remotable.class) || i.isAnnotationPresent(WebService.class)) {
addService(type, i);
}
}