spring-cloud-commons icon indicating copy to clipboard operation
spring-cloud-commons copied to clipboard

refactor: Remove obsolete SpringFactoriesLoader#loadFactoryNames

Open livk-cloud opened this issue 2 years ago • 0 comments

  • Use ImportCandidates#load instead of SpringFactoriesLoader#loadFactoryNames
  • Use EnvironmentPostProcessorsFactory#getEnvironmentPostProcessors instead of SpringFactoriesLoader#loadFactoryNames

There is currently no better way to use SpringFactoriesLoader#loadFactoryNames in org.springframework.cloud.commons.util.SpringFactoryImportSelector#selectImports. This may not necessarily produce better results, but isn't it a better thing to remove these obsolete methods I hope the Spring Cloud team will come up with a better opinion.

livk-cloud avatar Nov 30 '23 08:11 livk-cloud