From 4d72e26425ad1501ae3f5b41203533e905b3c640 Mon Sep 17 00:00:00 2001 From: rfeng Date: Tue, 6 Oct 2009 17:40:32 +0000 Subject: Add missing files and use name attribute to identify the host git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@822369 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/tuscany/sca/http/jetty/JettyServer.java | 4 ++++ .../META-INF/services/org.apache.tuscany.sca.host.http.ServletHost | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'java/sca/modules/host-jetty/src') diff --git a/java/sca/modules/host-jetty/src/main/java/org/apache/tuscany/sca/http/jetty/JettyServer.java b/java/sca/modules/host-jetty/src/main/java/org/apache/tuscany/sca/http/jetty/JettyServer.java index 70a3455a6e..f57e189344 100644 --- a/java/sca/modules/host-jetty/src/main/java/org/apache/tuscany/sca/http/jetty/JettyServer.java +++ b/java/sca/modules/host-jetty/src/main/java/org/apache/tuscany/sca/http/jetty/JettyServer.java @@ -127,6 +127,10 @@ public class JettyServer implements ServletHost, LifeCycleListener { } }); } + + public String getName() { + return "jetty"; + } public void setDefaultPort(int port) { defaultPort = port; diff --git a/java/sca/modules/host-jetty/src/main/resources/META-INF/services/org.apache.tuscany.sca.host.http.ServletHost b/java/sca/modules/host-jetty/src/main/resources/META-INF/services/org.apache.tuscany.sca.host.http.ServletHost index b1b8ddc387..e74aba0093 100644 --- a/java/sca/modules/host-jetty/src/main/resources/META-INF/services/org.apache.tuscany.sca.host.http.ServletHost +++ b/java/sca/modules/host-jetty/src/main/resources/META-INF/services/org.apache.tuscany.sca.host.http.ServletHost @@ -15,4 +15,4 @@ # specific language governing permissions and limitations # under the License. # Implementation class for the ServletHost -org.apache.tuscany.sca.http.jetty.JettyServer;ranking=100 \ No newline at end of file +org.apache.tuscany.sca.http.jetty.JettyServer;name=jetty,ranking=100 \ No newline at end of file -- cgit v1.2.3