Author: rfeng
Date: Thu Aug 7 23:57:24 2008
New Revision: 683881
URL: http://svn.apache.org/viewvc?rev=683881&view=rev
Log:
Make sure getServices() returns an empty list
Modified:
tuscany/java/sca/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationImpl.java
Modified:
tuscany/java/sca/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationImpl.java
URL:
http://svn.apache.org/viewvc/tuscany/java/sca/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationImpl.java?rev=683881&r1=683880&r2=683881&view=diff
==============================================================================
---
tuscany/java/sca/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationImpl.java
(original)
+++
tuscany/java/sca/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationImpl.java
Thu Aug 7 23:57:24 2008
@@ -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 @@
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 @@
}
public List<Service> getServices() {
- return services;
+ // The Web implementation does not offer services
+ return Collections.emptyList();
}
public List<Reference> getReferences() {
@@ -65,7 +67,7 @@
}
public void setConstrainingType(ConstrainingType constrainingType) {
- // The EJB implementation does not support constrainingTypes
+ // The Web implementation does not support constrainingTypes
}
public String getURI() {