GH-554 Fix condition check for annotation processor in initializer

Resolves #554
This commit is contained in:
Oleg Zhurakousky
2020-07-15 12:24:28 +02:00
parent ecc625b6d8
commit 718f785ae1

View File

@@ -123,7 +123,7 @@ public class ContextFunctionCatalogInitializer implements ApplicationContextInit
}
if (!this.context.getBeanFactory()
.containsBean(AnnotationConfigUtils.CONFIGURATION_ANNOTATION_PROCESSOR_BEAN_NAME)) {
.containsBeanDefinition(AnnotationConfigUtils.CONFIGURATION_ANNOTATION_PROCESSOR_BEAN_NAME)) {
// Switch off the ConfigurationClassPostProcessor
this.context.registerBean(AnnotationConfigUtils.CONFIGURATION_ANNOTATION_PROCESSOR_BEAN_NAME,
DummyProcessor.class, () -> new DummyProcessor());