Class AotFactoriesLoader

java.lang.Object
org.springframework.beans.factory.aot.AotFactoriesLoader

public class AotFactoriesLoader extends Object
AOT specific factory loading mechanism for internal use within the framework.

Loads and instantiates factories of a given type from "META-INF/spring/aot.factories" and merges them with matching beans from a ListableBeanFactory.

Since:
6.0
Author:
Phillip Webb
See Also:
  • Field Details

    • FACTORIES_RESOURCE_LOCATION

      public static final String FACTORIES_RESOURCE_LOCATION
      The location to look for AOT factories.
      See Also:
  • Constructor Details

  • Method Details

    • load

      public <T> List<T> load(Class<T> type)
      Load items from factories file and merge them with any beans defined in the DefaultListableBeanFactory.
      Type Parameters:
      T - the item type
      Parameters:
      type - the item type to load
      Returns:
      a list of loaded instances