INT-1903 appended to log message for non-registry BeanFactory

This commit is contained in:
Mark Fisher
2011-05-18 11:43:42 -04:00
parent 2b743200d4
commit 0de92313c5

View File

@@ -61,7 +61,9 @@ class DefaultConfiguringBeanFactoryPostProcessor implements BeanFactoryPostProce
else if (logger.isWarnEnabled()) {
logger.warn("BeanFactory is not a BeanDefinitionRegistry. The default '"
+ IntegrationContextUtils.ERROR_CHANNEL_BEAN_NAME + "' and '"
+ IntegrationContextUtils.TASK_SCHEDULER_BEAN_NAME + "' cannot be configured.");
+ IntegrationContextUtils.TASK_SCHEDULER_BEAN_NAME + "' cannot be configured."
+ " Also, any custom IdGenerator implementation configured in this BeanFactory"
+ " will not be recognized.");
}
}
@@ -71,8 +73,8 @@ class DefaultConfiguringBeanFactoryPostProcessor implements BeanFactoryPostProce
for (String definitionName : definitionNames) {
BeanDefinition definition = registry.getBeanDefinition(definitionName);
if (listenerClassName.equals(definition.getBeanClassName())) {
if (logger.isWarnEnabled()) {
logger.warn(listenerClassName + " is already registered and will be used");
if (logger.isInfoEnabled()) {
logger.info(listenerClassName + " is already registered and will be used");
}
return;
}