Skip to content

Allow setting custom ClassPathBeanDefinitionScanner on AnnotationConfigWebApplicationContext [SPR-9324] #13962

Closed
@spring-projects-issues

Description

@spring-projects-issues

Richard L. Allen opened SPR-9324 and commented

We use a custom ClassPathBeanDefinitionScanner along with AnnotationConfigWebApplicationContext. To achieve this, we have to extend AnnotationConfigWebApplicationContext and override the loadBeanDefinitions method to substitute our custom scanner. Would be nice if AnnotationConfigWebApplicationContext simply had a set method for the scanner the same as the set methods for the BeanNameGenerator and ScopeMetadataResolver.


Affects: 3.1.1

Referenced from: commits 0230c49, 20beace

Backported to: 4.1.9

1 votes, 1 watchers

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions