Skip to content

Could "ApplicationContextAware" be "deprecated", please? #35056

@youngledo

Description

@youngledo

The "ApplicationContextAware" class accesses other Beans or container resources without dependency injection. However, in practice, it has been found that this class is often misused in interviews; Beans that should be obtained through injection are instead frequently accessed via a so-called utility class. This convenient access method provided by the class should be restricted as early as possible.

[Edited, screenshot deleted.]

Metadata

Metadata

Assignees

Labels

for: stackoverflowA question that's better suited to stackoverflow.com

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions