aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1780556 - /aries/trunk/blueprint/blueprint-spring/src/main/java/org/apache/aries/blueprint/spring/SpringBeanProcessor.java
Date Fri, 27 Jan 2017 13:34:10 GMT
Author: gnodet
Date: Fri Jan 27 13:34:10 2017
New Revision: 1780556

URL: http://svn.apache.org/viewvc?rev=1780556&view=rev
Log:
[ARIES-1673] Spring beans not destroyed

Modified:
    aries/trunk/blueprint/blueprint-spring/src/main/java/org/apache/aries/blueprint/spring/SpringBeanProcessor.java

Modified: aries/trunk/blueprint/blueprint-spring/src/main/java/org/apache/aries/blueprint/spring/SpringBeanProcessor.java
URL: http://svn.apache.org/viewvc/aries/trunk/blueprint/blueprint-spring/src/main/java/org/apache/aries/blueprint/spring/SpringBeanProcessor.java?rev=1780556&r1=1780555&r2=1780556&view=diff
==============================================================================
--- aries/trunk/blueprint/blueprint-spring/src/main/java/org/apache/aries/blueprint/spring/SpringBeanProcessor.java
(original)
+++ aries/trunk/blueprint/blueprint-spring/src/main/java/org/apache/aries/blueprint/spring/SpringBeanProcessor.java
Fri Jan 27 13:34:10 2017
@@ -53,7 +53,7 @@ public class SpringBeanProcessor impleme
 
     @Override
     public void process(ComponentDefinitionRegistry componentDefinitionRegistry) {
-        applicationContext.process();
+        applicationContext.refresh();
     }
 
     @Override
@@ -83,11 +83,6 @@ public class SpringBeanProcessor impleme
 
     @Override
     public void beforeDestroy(Object o, String s) {
-        for (BeanPostProcessor processor : applicationContext.getBeanFactory().getBeanPostProcessors())
{
-            if (processor instanceof DestructionAwareBeanPostProcessor) {
-                ((DestructionAwareBeanPostProcessor) processor).postProcessBeforeDestruction(o,
s);
-            }
-        }
     }
 
     @Override



Mime
View raw message