<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=rjo67" rel="nofollow">richard oates</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5205?redirect=false" rel="nofollow">SPR-5205</a></strong> and commented</p>
<p dir="auto">In our setup we want to read in many bean definition "fragments" and then in a later step allow bean overriding. In BeanDefinitionParserDelegate the method parseBeanDefinitionElement checks for duplicate beans using the method checkNameUniqueness. If this method was protected instead of private, we could simply subclass and override it.</p>
<p dir="auto">As it is, we're forced to subclass and duplicate the implementation of parseBeanDefinitionElement. Not a major problem, but it would be nice if the visibility of checkNameUniqueness could be changed to protected to enable us to avoid this.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.5</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=richard.allen" rel="nofollow">Richard L. Allen</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9324?redirect=false" rel="nofollow">SPR-9324</a></strong> and commented</p>
<p dir="auto">We use a custom <code class="notranslate">ClassPathBeanDefinitionScanner</code> along with <code class="notranslate">AnnotationConfigWebApplicationContext</code>. To achieve this, we have to extend <code class="notranslate">AnnotationConfigWebApplicationContext</code> and override the <code class="notranslate">loadBeanDefinitions</code> method to substitute our custom scanner. Would be nice if <code class="notranslate">AnnotationConfigWebApplicationContext</code> simply had a set method for the scanner the same as the set methods for the <code class="notranslate">BeanNameGenerator</code> and <code class="notranslate">ScopeMetadataResolver</code>.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1.1</p>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/0230c49a82c750cf2c6aa169b2f10361b185ed23/hovercard" href="https://github.com/spring-projects/spring-framework/commit/0230c49a82c750cf2c6aa169b2f10361b185ed23"><tt>0230c49</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/20beace1bf992e52e5f6403217696d8d45dcd2b8/hovercard" href="https://github.com/spring-projects/spring-framework/commit/20beace1bf992e52e5f6403217696d8d45dcd2b8"><tt>20beace</tt></a></p>
<p dir="auto"><strong>Backported to:</strong> <a href="https://github.com/spring-projects/spring-framework/milestone/133?closed=1">4.1.9</a></p>
<p dir="auto">1 votes, 1 watchers</p>