for (String beanName : beanNames)
{
Object bean = getBean(beanName);
if (bean instanceof UninitializingBean && !(bean instanceof Container))
{
UninitializingBean scl = (UninitializingBean) bean;
Loggers.STARTUP.debug("- For contained bean: " + beanName);
scl.contextDestroyed();
}
}
}