diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-12 09:29:25 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-12 09:29:25 +0000 |
commit | 2fa7aa6f0fd5a5f50f3971bc14c1c58d2a7f263f (patch) | |
tree | c63b4c80e8323ec01949cbac9355d96a4dd09fa6 /sca-java-2.x/trunk/modules/assembly/src/main | |
parent | d89457df724ae0ab598a9e31c2d48845cddc233b (diff) |
TUSCANY-3641 - When a JAXWS binding is encountered make sure that the associated SCA service has a WS binding.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@984702 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/assembly/src/main')
2 files changed, 26 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Service.java b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Service.java index 1f3d412364..9caa7563c9 100644 --- a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Service.java +++ b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Service.java @@ -39,4 +39,21 @@ public interface Service extends AbstractService, Contract { * @return the endpoints implied by this service */ List<Endpoint> getEndpoints(); + + + /** + * Returns true if this service was defined based on JAXWS annotations + * in a Java implementation + * + * @return + */ + boolean isJAXWSService(); + + /** + * Allows the JAXWSService flag to be set. It should be set true if the service + * configuration has been affected by JAXWS annotations. + * + * @param isJAXWSService + */ + void setJAXWSService(boolean isJAXWSService); } diff --git a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ServiceImpl.java b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ServiceImpl.java index 62523e5c17..f8eb0fa6ec 100644 --- a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ServiceImpl.java +++ b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ServiceImpl.java @@ -38,6 +38,7 @@ public class ServiceImpl extends AbstractServiceImpl implements Service, Cloneab private boolean overridingBindings; private Callback callback; private List<Endpoint> endpoints = new ArrayList<Endpoint>(); + private boolean isJAXWSService = false; /** * Constructs a new service. @@ -103,4 +104,12 @@ public class ServiceImpl extends AbstractServiceImpl implements Service, Cloneab public void setOverridingBindings(boolean overridingBindings) { this.overridingBindings = overridingBindings; } + + public boolean isJAXWSService() { + return isJAXWSService; + } + + public void setJAXWSService(boolean isJAXWSService) { + this.isJAXWSService = isJAXWSService; + } } |