Skip to content

Allow @Import and @ComponentScan classes to use constructor injection #23637

@philwebb

Description

@philwebb

Currently the ImportBeanDefinitionRegistrar, ImportSelector, DeferredImportSelector.Group and TypeFilter interfaces allow the following callbacks to be used:

  • EnvironmentAware
  • BeanFactoryAware
  • BeanClassLoaderAware
  • ResourceLoaderAware

It would be very nice if constructor arguments could be used as an alternative to these. This would allow implementation to use final fields.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions