You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by jm...@apache.org on 2006/08/21 08:38:21 UTC
svn commit: r433175 - in
/incubator/tuscany/java/sca/runtime/webapp/src/main/java/org/apache/tuscany/runtime/webapp:
TuscanyContextListener.java TuscanyServlet.java
Author: jmarino
Date: Sun Aug 20 23:38:21 2006
New Revision: 433175
URL: http://svn.apache.org/viewvc?rev=433175&view=rev
Log:
checkstyle cleanup
Modified:
incubator/tuscany/java/sca/runtime/webapp/src/main/java/org/apache/tuscany/runtime/webapp/TuscanyContextListener.java
incubator/tuscany/java/sca/runtime/webapp/src/main/java/org/apache/tuscany/runtime/webapp/TuscanyServlet.java
Modified: incubator/tuscany/java/sca/runtime/webapp/src/main/java/org/apache/tuscany/runtime/webapp/TuscanyContextListener.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/runtime/webapp/src/main/java/org/apache/tuscany/runtime/webapp/TuscanyContextListener.java?rev=433175&r1=433174&r2=433175&view=diff
==============================================================================
--- incubator/tuscany/java/sca/runtime/webapp/src/main/java/org/apache/tuscany/runtime/webapp/TuscanyContextListener.java (original)
+++ incubator/tuscany/java/sca/runtime/webapp/src/main/java/org/apache/tuscany/runtime/webapp/TuscanyContextListener.java Sun Aug 20 23:38:21 2006
@@ -18,21 +18,20 @@
*/
package org.apache.tuscany.runtime.webapp;
-import java.util.Set;
-import java.net.URL;
-import java.net.MalformedURLException;
-import java.net.URLClassLoader;
import java.beans.Beans;
import java.io.IOException;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.net.URLClassLoader;
+import java.util.Set;
+import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
-import javax.servlet.ServletContext;
/**
- * Launcher for runtime environment that loads info from servlet context params.
- * This listener manages one top-level Launcher (and hence one Tuscany runtime context)
- * per servlet context; the lifecycle of that runtime corresponds to the the lifecycle of the
- * associated servlet context.
+ * Launcher for runtime environment that loads info from servlet context params. This listener manages one top-level
+ * Launcher (and hence one Tuscany runtime context) per servlet context; the lifecycle of that runtime corresponds to
+ * the the lifecycle of the associated servlet context.
*
* @version $Rev$ $Date$
*/
@@ -76,7 +75,7 @@
return contextClassLoader;
}
URL[] urls = new URL[paths.size()];
- int i =0;
+ int i = 0;
for (Object path : paths) {
try {
urls[i++] = servletContext.getResource((String) path);
Modified: incubator/tuscany/java/sca/runtime/webapp/src/main/java/org/apache/tuscany/runtime/webapp/TuscanyServlet.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/runtime/webapp/src/main/java/org/apache/tuscany/runtime/webapp/TuscanyServlet.java?rev=433175&r1=433174&r2=433175&view=diff
==============================================================================
--- incubator/tuscany/java/sca/runtime/webapp/src/main/java/org/apache/tuscany/runtime/webapp/TuscanyServlet.java (original)
+++ incubator/tuscany/java/sca/runtime/webapp/src/main/java/org/apache/tuscany/runtime/webapp/TuscanyServlet.java Sun Aug 20 23:38:21 2006
@@ -19,7 +19,6 @@
package org.apache.tuscany.runtime.webapp;
import java.io.IOException;
-
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
@@ -30,8 +29,8 @@
import org.apache.tuscany.host.servlet.ServletRequestInjector;
/**
- * A servlet that locates the ServletRequestInjector and forwards requests into the Tuscany runtime.
- * Needs to be added to the webapp web.xml
+ * A servlet that locates the ServletRequestInjector and forwards requests into the Tuscany runtime. Needs to be added
+ * to the webapp web.xml
*/
public class TuscanyServlet extends HttpServlet {
@@ -42,7 +41,8 @@
@Override
public void init(ServletConfig config) {
ServletContext servletContext = config.getServletContext();
- this.servletRequestInjector = (ServletRequestInjector) servletContext.getAttribute("Tuscany.ServletRequestInjector");
+ this.servletRequestInjector =
+ (ServletRequestInjector) servletContext.getAttribute("Tuscany.ServletRequestInjector");
}
@Override
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org