summaryrefslogtreecommitdiffstats
path: root/java/sca/modules
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2008-08-08 06:57:24 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2008-08-08 06:57:24 +0000
commita3ee573034df859863c4ea566cf34d6958736851 (patch)
tree7ba9e92e9a046ec9014f9d43497136e65f95cde8 /java/sca/modules
parent290fe1b83256641ad0267f2ecf14fd1be00a1726 (diff)
Make sure getServices() returns an empty list
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@683881 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules')
-rw-r--r--java/sca/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationImpl.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/java/sca/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationImpl.java b/java/sca/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationImpl.java
index 6a46eb03c5..96b5b12137 100644
--- a/java/sca/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationImpl.java
+++ b/java/sca/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationImpl.java
@@ -19,6 +19,7 @@
package org.apache.tuscany.sca.implementation.web.impl;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.List;
import org.apache.tuscany.sca.assembly.ConstrainingType;
@@ -34,7 +35,7 @@ import org.apache.tuscany.sca.implementation.web.WebImplementation;
class WebImplementationImpl implements WebImplementation {
private List<Property> properties = new ArrayList<Property>();
- private List<Service> services = new ArrayList<Service>();
+ // private List<Service> services = new ArrayList<Service>();
private List<Reference> references = new ArrayList<Reference>();
private String uri;
private boolean unresolved;
@@ -57,7 +58,8 @@ class WebImplementationImpl implements WebImplementation {
}
public List<Service> getServices() {
- return services;
+ // The Web implementation does not offer services
+ return Collections.emptyList();
}
public List<Reference> getReferences() {
@@ -65,7 +67,7 @@ class WebImplementationImpl implements WebImplementation {
}
public void setConstrainingType(ConstrainingType constrainingType) {
- // The EJB implementation does not support constrainingTypes
+ // The Web implementation does not support constrainingTypes
}
public String getURI() {