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:
Oliver Gierke
2014-07-18 12:21:35 +02:00
parent ea1d7742c9
commit 5aa5b9e1aa

View File

@@ -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) {