tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmar...@apache.org
Subject svn commit: r411402 - in /incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty: ./ main/ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/tuscany/ src/main/java/org/apache/tuscany/servi...
Date Sat, 03 Jun 2006 07:39:51 GMT
Author: jmarino
Date: Sat Jun  3 00:39:50 2006
New Revision: 411402

URL: http://svn.apache.org/viewvc?rev=411402&view=rev
Log:
skeleton checkin

Added:
    incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/
    incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/main/
    incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/main/java/
    incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/main/java/org/
    incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/main/java/org/apache/
    incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/
    incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/
    incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/
    incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/JettyService.java
    incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/JettyServiceImpl.java
    incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/TransportMonitor.java
    incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/test/
    incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/test/java/
    incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/test/java/org/
    incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/test/java/org/apache/
    incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/test/java/org/apache/tuscany/
    incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/test/java/org/apache/tuscany/service/
    incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/test/java/org/apache/tuscany/service/jetty/
Removed:
    incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/main/
    incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/test/
Modified:
    incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/pom.xml

Modified: incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/pom.xml?rev=411402&r1=411401&r2=411402&view=diff
==============================================================================
--- incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/pom.xml (original)
+++ incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/pom.xml Sat Jun 
3 00:39:50 2006
@@ -52,6 +52,12 @@
             <version>6.0.0beta16</version>
             <scope>compile</scope>
         </dependency>
+		  <dependency>
+            <groupId>tomcat</groupId>
+            <artifactId>servlet-api</artifactId>
+            <version>5.0.18</version>
+            <scope>provided</scope>
+        </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>

Added: incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/JettyService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/JettyService.java?rev=411402&view=auto
==============================================================================
--- incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/JettyService.java
(added)
+++ incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/JettyService.java
Sat Jun  3 00:39:50 2006
@@ -0,0 +1,9 @@
+package org.apache.tuscany.service.jetty;
+
+import org.apache.tuscany.spi.host.ServletHost;
+
+/**
+ * @version $$Rev$$ $$Date$$
+ */
+public interface JettyService extends ServletHost {
+}

Added: incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/JettyServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/JettyServiceImpl.java?rev=411402&view=auto
==============================================================================
--- incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/JettyServiceImpl.java
(added)
+++ incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/JettyServiceImpl.java
Sat Jun  3 00:39:50 2006
@@ -0,0 +1,51 @@
+package org.apache.tuscany.service.jetty;
+
+import javax.servlet.Servlet;
+
+import org.apache.tuscany.spi.annotation.Monitor;
+import org.apache.tuscany.spi.host.ServletHost;
+import org.osoa.sca.annotations.Destroy;
+import org.osoa.sca.annotations.Init;
+import org.osoa.sca.annotations.Scope;
+import org.osoa.sca.annotations.Service;
+import org.osoa.sca.annotations.Property;
+
+/**
+ * @version $$Rev$$ $$Date$$
+ */
+@Scope("MODULE")
+@Service(ServletHost.class)
+public class JettyServiceImpl implements JettyService {
+
+    private TransportMonitor monitor;
+    private int port = 8080;
+
+    @Monitor
+    public void setMonitor(TransportMonitor monitor) {
+        this.monitor = monitor;
+    }
+
+    @Property
+    public void setPort(int port) {
+        this.port = port;
+    }
+
+    @Init
+    public void init() {
+        monitor.started(port);
+    }
+
+    @Destroy
+    public void destroy() {
+        monitor.shutdown(port);
+    }
+
+    public void registerMapping(String string, Servlet servlet) {
+
+    }
+
+    public void unregisterMapping(String string) {
+
+    }
+
+}

Added: incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/TransportMonitor.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/TransportMonitor.java?rev=411402&view=auto
==============================================================================
--- incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/TransportMonitor.java
(added)
+++ incubator/tuscany/sandbox/jboynes/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/TransportMonitor.java
Sat Jun  3 00:39:50 2006
@@ -0,0 +1,16 @@
+package org.apache.tuscany.service.jetty;
+
+/**
+ * @version $$Rev$$ $$Date$$
+ */
+public interface TransportMonitor {
+
+    void started(int port);
+
+    void shutdown(int port);
+
+    void startError(int port, Exception e);
+
+    void shutdownError(int port, Exception e);
+
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message