Skip to content

Add the ability to create an optional bean reference by name [SPR-14712] #19277

Closed
@spring-projects-issues

Description

@spring-projects-issues

Stéphane Nicoll opened SPR-14712 and commented

See #16509

The reason for our own scanning is that we need to find out whether we have to wire a custom repository implementation to the proxy or not. If we relied on the users declaring the implementation class as Spring bean, we can't be sure that bean definition is already available in the registry and thus we can't reliably decide whether to configure a runtime bean reference or not.
If the container provided means to create an optional bean reference by name, we could we could drop our own scanning.


Affects: 5.0 M1

Issue Links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)status: bulk-closedAn outdated, unresolved issue that's closed in bulk as part of a cleaning process

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions