You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by st...@apache.org on 2010/03/15 17:33:21 UTC

svn commit: r923330 - in /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/lifecycle: StandaloneLifeCycle.java test/OpenWebBeansTestLifeCycle.java

Author: struberg
Date: Mon Mar 15 16:33:21 2010
New Revision: 923330

URL: http://svn.apache.org/viewvc?rev=923330&view=rev
Log:
OWB-275 code cleanup and JavaDocs

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/lifecycle/StandaloneLifeCycle.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/lifecycle/test/OpenWebBeansTestLifeCycle.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/lifecycle/StandaloneLifeCycle.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/lifecycle/StandaloneLifeCycle.java?rev=923330&r1=923329&r2=923330&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/lifecycle/StandaloneLifeCycle.java (original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/lifecycle/StandaloneLifeCycle.java Mon Mar 15 16:33:21 2010
@@ -1,15 +1,20 @@
 /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with this
- * work for additional information regarding copyright ownership. The ASF
- * licenses this file to You under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
- * or agreed to in writing, software distributed under the License is
- * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the specific language
- * governing permissions and limitations under the License.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 package org.apache.webbeans.lifecycle;
 
@@ -19,6 +24,9 @@ import org.apache.webbeans.config.WebBea
 import org.apache.webbeans.context.ContextFactory;
 import org.apache.webbeans.logger.WebBeansLogger;
 
+/**
+ * Default LifeCycle for a standalone application without a ServletContainer.
+ */
 public class StandaloneLifeCycle extends AbstractLifeCycle
 {
     private static final WebBeansLogger logger = WebBeansLogger.getLogger(StandaloneLifeCycle.class);
@@ -50,8 +58,8 @@ public class StandaloneLifeCycle extends
     {
         ContextFactory.destroyRequestContext(null);
         ContextFactory.destroySessionContext(null);
-        ContextFactory.destroyConversationContext();        
-        ContextFactory.destroyApplicationContext(null);   
+        ContextFactory.destroyConversationContext();
+        ContextFactory.destroyApplicationContext(null);
         ContextFactory.destroySingletonContext(null);
     }
     

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/lifecycle/test/OpenWebBeansTestLifeCycle.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/lifecycle/test/OpenWebBeansTestLifeCycle.java?rev=923330&r1=923329&r2=923330&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/lifecycle/test/OpenWebBeansTestLifeCycle.java (original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/lifecycle/test/OpenWebBeansTestLifeCycle.java Mon Mar 15 16:33:21 2010
@@ -36,7 +36,7 @@ public class OpenWebBeansTestLifeCycle e
     @Override
     public void initApplication(Properties properties)
     {
-        this.scannerService = new OpenWebBeansTestMetaDataDiscoveryService();        
+        this.scannerService = new OpenWebBeansTestMetaDataDiscoveryService();
     }    
     
     public ScannerService getScannerService()