Skip to content

Introduce getSource() in ApplicationContextEvent with covariant return type #35197

@sbrannen

Description

@sbrannen

ApplicationContextEvent currently inherits getSource() from java.util.EventObject.getSource() which has an Object return type.

We should therefore introduce a local getSource() implementation in ApplicationContextEvent with an ApplicationContext covariant return type, analogous to TestContextEvent in spring-test.

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