SPR-6354 DefaultLifecycleProcessor no longer waits for the shutdown of SmartLifecycle beans that are not actually running.

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2477 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Mark Fisher
2009-11-20 18:09:14 +00:00
parent 8b085ec84a
commit 057d31b338
3 changed files with 77 additions and 0 deletions
@@ -174,6 +174,10 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
bean.stop();
}
}
else if (bean instanceof SmartLifecycle) {
// don't wait for beans that aren't running
latch.countDown();
}
lifecycleBeans.remove(beanName);
}
}