From a3ee573034df859863c4ea566cf34d6958736851 Mon Sep 17 00:00:00 2001 From: rfeng Date: Fri, 8 Aug 2008 06:57:24 +0000 Subject: Make sure getServices() returns an empty list git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@683881 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/implementation/web/impl/WebImplementationImpl.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'java/sca') 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 properties = new ArrayList(); - private List services = new ArrayList(); + // private List services = new ArrayList(); private List references = new ArrayList(); private String uri; private boolean unresolved; @@ -57,7 +58,8 @@ class WebImplementationImpl implements WebImplementation { } public List getServices() { - return services; + // The Web implementation does not offer services + return Collections.emptyList(); } public List 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() { -- cgit v1.2.3