openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1822507 - /openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java
Date Mon, 29 Jan 2018 14:04:55 GMT
Author: struberg
Date: Mon Jan 29 14:04:55 2018
New Revision: 1822507

URL: http://svn.apache.org/viewvc?rev=1822507&view=rev
Log:
OWB-1223 also fire BeforeDestroyed(ApplicationScoped.class) in WebContextsService

Modified:
    openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java

Modified: openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java?rev=1822507&r1=1822506&r2=1822507&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java
(original)
+++ openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java
Mon Jan 29 14:04:55 2018
@@ -18,6 +18,7 @@
  */
 package org.apache.webbeans.web.context;
 
+import org.apache.webbeans.annotation.BeforeDestroyedLiteral;
 import org.apache.webbeans.annotation.DestroyedLiteral;
 import org.apache.webbeans.annotation.InitializedLiteral;
 import org.apache.webbeans.config.OWBLogConst;
@@ -614,6 +615,9 @@ public class WebContextsService extends
         //Destroy context
         if(applicationContext != null && !applicationContext.isDestroyed())
         {
+            webBeansContext.getBeanManagerImpl().fireContextLifecyleEvent(
+                endObject, BeforeDestroyedLiteral.INSTANCE_APPLICATION_SCOPED);
+
             applicationContext.destroy();
             // this is needed to get rid of ApplicationScoped beans which are cached inside
the proxies...
             webBeansContext.getBeanManagerImpl().clearCacheProxies();



Mime
View raw message