openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r950712 - /openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/lifecycle/WebContainerLifecycle.java
Date Wed, 02 Jun 2010 18:38:49 GMT
Author: gerdogdu
Date: Wed Jun  2 18:38:48 2010
New Revision: 950712

URL: http://svn.apache.org/viewvc?rev=950712&view=rev
Log:
Clear resource injection service at shutdown

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

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=950712&r1=950711&r2=950712&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 Jun  2 18:38:48 2010
@@ -37,6 +37,7 @@ import org.apache.webbeans.corespi.Servi
 import org.apache.webbeans.exception.WebBeansException;
 import org.apache.webbeans.lifecycle.AbstractLifeCycle;
 import org.apache.webbeans.logger.WebBeansLogger;
+import org.apache.webbeans.spi.ResourceInjectionService;
 import org.apache.webbeans.spi.adaptor.ELAdaptor;
 
 /**
@@ -156,6 +157,13 @@ public final class WebContainerLifecycle
             servletContext = getServletContext(stopObject);
         }
         
+        //Clear the resource injection service
+        ResourceInjectionService injectionServices = ServiceLoader.getService(ResourceInjectionService.class);
+        if(injectionServices != null)
+        {
+            injectionServices.clear();
+        }
+        
         if (logger.wblWillLogInfo())
         {
             logger.info(OWBLogConst.INFO_0002, servletContext != null ? servletContext.getContextPath()
: "null");



Mime
View raw message