@ -174,8 +175,8 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
@@ -174,8 +175,8 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
logger.debug("Starting bean '"+beanName+"' of type ["+bean.getClass()+"]");
if(logger.isTraceEnabled()){
logger.trace("Starting bean '"+beanName+"' of type ["+bean.getClass().getName()+"]");
}
try{
bean.start();
@ -229,8 +230,9 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
@@ -229,8 +230,9 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
try{
if(bean.isRunning()){
if(beaninstanceofSmartLifecycle){
if(logger.isDebugEnabled()){
logger.debug("Asking bean '"+beanName+"' of type ["+bean.getClass()+"] to stop");
if(logger.isTraceEnabled()){
logger.trace("Asking bean '"+beanName+"' of type ["+
bean.getClass().getName()+"] to stop");
}
countDownBeanNames.add(beanName);
((SmartLifecycle)bean).stop(()->{
@ -242,8 +244,9 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
@@ -242,8 +244,9 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
});
}
else{
if(logger.isDebugEnabled()){
logger.debug("Stopping bean '"+beanName+"' of type ["+bean.getClass()+"]");
if(logger.isTraceEnabled()){
logger.trace("Stopping bean '"+beanName+"' of type ["+
bean.getClass().getName()+"]");
}
bean.stop();
if(logger.isDebugEnabled()){
@ -354,11 +357,9 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
@@ -354,11 +357,9 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
@ -370,8 +371,9 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
@@ -370,8 +371,9 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
@ -381,8 +383,8 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
@@ -381,8 +383,8 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor