diff options
Diffstat (limited to 'sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca')
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; + } } |