mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-20 04:09:04 +00:00
Allow `ImportBeanDefinitionRegistrar`, `ImportSelector`, `DeferredImportSelector.Group` and `TypeFilter` to use constructor parameters as an alternative to `*Aware` callbacks. In order to remain backwards compatible, injection only occurs when there is a single constructor with one or more parameters. The following parameter types are supported: * `Environment` * `BeanFactory` * `ClassLoader` * `ResourceLoader` In order to keep the algorithm simple, subclass parameter types are not supported. For example, you cannot use `ConfigurableEnvironment` instead of `Environment`. Closes gh-23637