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