openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1079814 - in /openwebbeans/trunk: webbeans-impl/src/main/java/org/apache/webbeans/lifecycle/ webbeans-spi/src/main/java/org/apache/webbeans/spi/ webbeans-web/src/main/java/org/apache/webbeans/web/lifecycle/
Date Wed, 09 Mar 2011 14:31:52 GMT
Author: struberg
Date: Wed Mar  9 14:31:52 2011
New Revision: 1079814

URL: http://svn.apache.org/viewvc?rev=1079814&view=rev
Log:
OWB-543 get rid of checked Exceptions in our SPI 

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/lifecycle/AbstractLifeCycle.java
    openwebbeans/trunk/webbeans-spi/src/main/java/org/apache/webbeans/spi/ContainerLifecycle.java
    openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/lifecycle/WebContainerLifecycle.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/lifecycle/AbstractLifeCycle.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/lifecycle/AbstractLifeCycle.java?rev=1079814&r1=1079813&r2=1079814&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/lifecycle/AbstractLifeCycle.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/lifecycle/AbstractLifeCycle.java
Wed Mar  9 14:31:52 2011
@@ -96,7 +96,7 @@ public abstract class AbstractLifeCycle 
     }
     
     @Override
-    public void startApplication(Object startupObject) throws Exception
+    public void startApplication(Object startupObject)
     {
         // Initalize Application Context
         logger.info(OWBLogConst.INFO_0005);
@@ -253,22 +253,22 @@ public abstract class AbstractLifeCycle 
         //Do nothing as default
     }
         
-    protected void afterStartApplication(Object startupObject) throws Exception
+    protected void afterStartApplication(Object startupObject)
     {
         //Do nothing as default
     }
 
-    protected void afterStopApplication(Object stopObject) throws Exception
+    protected void afterStopApplication(Object stopObject)
     {
         //Do nothing as default
     }
     
-    protected void beforeStartApplication(Object startupObject) throws Exception
+    protected void beforeStartApplication(Object startupObject)
     {
         //Do nothing as default
     }
 
-    protected void beforeStopApplication(Object stopObject) throws Exception
+    protected void beforeStopApplication(Object stopObject)
     {
         //Do nothing as default
     }    

Modified: openwebbeans/trunk/webbeans-spi/src/main/java/org/apache/webbeans/spi/ContainerLifecycle.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-spi/src/main/java/org/apache/webbeans/spi/ContainerLifecycle.java?rev=1079814&r1=1079813&r2=1079814&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-spi/src/main/java/org/apache/webbeans/spi/ContainerLifecycle.java
(original)
+++ openwebbeans/trunk/webbeans-spi/src/main/java/org/apache/webbeans/spi/ContainerLifecycle.java
Wed Mar  9 14:31:52 2011
@@ -63,9 +63,8 @@ public interface ContainerLifecycle
      * developer.
      * </p>
      * @param startupObject any startup object.
-     * @throws Exception exception thrown by startup
      */
-    public void startApplication(Object startupObject) throws Exception;
+    public void startApplication(Object startupObject);
         
     /**
      * Stops means that container removes all bean instances

Modified: openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/lifecycle/WebContainerLifecycle.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/lifecycle/WebContainerLifecycle.java?rev=1079814&r1=1079813&r2=1079814&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/lifecycle/WebContainerLifecycle.java
(original)
+++ openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/lifecycle/WebContainerLifecycle.java
Wed Mar  9 14:31:52 2011
@@ -71,7 +71,7 @@ public final class WebContainerLifecycle
      * {@inheritDoc}
      */
     @Override
-    public void startApplication(Object startupObject) throws Exception
+    public void startApplication(Object startupObject)
     {
         ServletContext servletContext = getServletContext(startupObject);
         super.startApplication(servletContext);
@@ -90,7 +90,7 @@ public final class WebContainerLifecycle
     /**
      * {@inheritDoc}
      */
-    protected void afterStartApplication(final Object startupObject) throws Exception
+    protected void afterStartApplication(final Object startupObject)
     {
         String strDelay = getWebBeansContext().getOpenWebBeansConfiguration().getProperty(OpenWebBeansConfiguration.CONVERSATION_PERIODIC_DELAY,"150000");
         long delay = Long.parseLong(strDelay);
@@ -141,7 +141,7 @@ public final class WebContainerLifecycle
     /**
      * {@inheritDoc}
      */
-    protected void beforeStopApplication(Object stopObject) throws Exception
+    protected void beforeStopApplication(Object stopObject)
     {
         if(service != null)
         {
@@ -152,9 +152,9 @@ public final class WebContainerLifecycle
     /**
      * {@inheritDoc}
      */
-    protected void afterStopApplication(Object stopObject) throws Exception
+    protected void afterStopApplication(Object stopObject)
     {
-        ServletContext servletContext = null;
+        ServletContext servletContext;
 
         if(stopObject instanceof ServletContext)
         {



Mime
View raw message