Author: jboynes
Date: Thu Jul 20 15:31:00 2006
New Revision: 424095
URL: http://svn.apache.org/viewvc?rev=424095&view=rev
Log:
fix checkstyle problem
Modified:
incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/launcher/ServletLauncherListener.java
Modified:
incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/launcher/ServletLauncherListener.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/launcher/ServletLauncherListener.java?rev=424095&r1=424094&r2=424095&view=diff
==============================================================================
---
incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/launcher/ServletLauncherListener.java
(original)
+++
incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/launcher/ServletLauncherListener.java
Thu Jul 20 15:31:00 2006
@@ -52,13 +52,15 @@
// Read optional path to system SCDL from context-param
String systemScdlPath =
servletContext.getInitParameter(SYSTEM_SCDL_PATH_PARAM);
- if (systemScdlPath == null)
+ if (systemScdlPath == null) {
systemScdlPath = Launcher.METAINF_SYSTEM_SCDL_PATH;
+ }
// Read optional path to application SCDL from context-param
String applicationScdlPath =
servletContext.getInitParameter(APPLICATION_SCDL_PATH_PARAM);
- if (applicationScdlPath == null)
+ if (applicationScdlPath == null) {
applicationScdlPath = DEFAULT_APPLICATION_SCDL_PATH;
+ }
Launcher launcher = new Launcher();
@@ -76,8 +78,7 @@
component.start();
context = new CompositeContextImpl(component);
context.start();
- }
- catch (LoaderException le) {
+ } catch (LoaderException le) {
// TODO: Need proper logging infrastructure here
// TODO: stash exception info in attributes?
le.printStackTrace();
@@ -97,10 +98,12 @@
CompositeContextImpl context =
(CompositeContextImpl)
servletContext.getAttribute(APPLICATION_ROOT_CONTEXT_ATTRIBUTE);
- if (component != null)
+ if (component != null) {
component.stop();
+ }
- if (context != null)
+ if (context != null) {
context.stop();
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]