Skip to content

Support registration of non-public BeanDefinitionReader via @ImportResource #34928

Closed
@sbrannen

Description

@sbrannen

Currently, if a BeanDefinitionReader is registered via @ImportResource(reader = ...), the reader type must be public and have a public constructor that accepts a single BeanDefinitionRegistry argument.

In order to support registration of a custom, non-public BeanDefinitionReader, we should relax the undocumented visibility restriction.

In addition, we should document the fact that the BeanDefinitionReader's constructor must accept a single BeanDefinitionRegistry argument.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions