Skip to content

Commit

Permalink
Merge branch '2.5.x'
Browse files Browse the repository at this point in the history
Closes gh-27425
  • Loading branch information
wilkinsona committed Jul 21, 2021
2 parents 7e0fdb7 + 29c83bf commit 9157915
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private <T> List<T> getDetectors(ConfigurableListableBeanFactory beanFactory, Cl
List<String> names = SpringFactoriesLoader.loadFactoryNames(type, beanFactory.getBeanClassLoader());
Instantiator<T> instantiator = new Instantiator<>(type,
(availableParameters) -> availableParameters.add(Environment.class, this.environment));
return instantiator.instantiate(names);
return instantiator.instantiate(beanFactory.getBeanClassLoader(), names);
}

private static BeanDefinition getBeanDefinition(String beanName, ConfigurableListableBeanFactory beanFactory) {
Expand Down

0 comments on commit 9157915

Please sign in to comment.