DATACMNS-543 - Avoid duplicate repository bean registration in XML namespace.
We're now firing the component registration event manually in RepositoryBeanDefinitionParser as ParserContext.registerBeanComponent(…) registers the given BeanComponentDefinition with the registry. As we do that manually before this previously resulted in the BeanDefinition overriding the very same one and container warnings in turn.
This commit is contained in:
@@ -66,7 +66,7 @@ public class RepositoryBeanDefinitionParser implements BeanDefinitionParser {
|
||||
environment);
|
||||
|
||||
for (BeanComponentDefinition definition : delegate.registerRepositoriesIn(parser.getRegistry(), extension)) {
|
||||
parser.registerBeanComponent(definition);
|
||||
parser.getReaderContext().fireComponentRegistered(definition);
|
||||
}
|
||||
|
||||
} catch (RuntimeException e) {
|
||||
|
||||
Reference in New Issue
Block a user