Skip to content

Ignore container callback and marker interfaces for auto-proxy decisions [SPR-11416] #16043

Closed
@spring-projects-issues

Description

@spring-projects-issues

Juergen Hoeller opened SPR-11416 and commented

Spring's auto-proxy creation infrastructure currently switches to a target-class proxy only if it has been explicitly requested or if no interfaces are being implemented at all. We should be smarter here and ignore container callback and marker interfaces for that decision, falling back to a target-class proxy even when BeanFactoryAware, InitializingBean etc are the only interfaces being implemented.


Affects: 4.0.1

Issue Links:

Referenced from: commits 9493380

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions