summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/host-jetty/src
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-10-06 17:40:32 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-10-06 17:40:32 +0000
commit4d72e26425ad1501ae3f5b41203533e905b3c640 (patch)
treeb1c1bb2f013f91cdce2ca981ab7813a05d95e065 /java/sca/modules/host-jetty/src
parent9e75baa6a3d450854e7ad05001a6b0ca750a643b (diff)
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
Diffstat (limited to 'java/sca/modules/host-jetty/src')
-rw-r--r--java/sca/modules/host-jetty/src/main/java/org/apache/tuscany/sca/http/jetty/JettyServer.java4
-rw-r--r--java/sca/modules/host-jetty/src/main/resources/META-INF/services/org.apache.tuscany.sca.host.http.ServletHost2
2 files changed, 5 insertions, 1 deletions
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