Class AotServices<T>
java.lang.Object
org.springframework.beans.factory.aot.AotServices<T>
- Type Parameters:
- T- the service type
- All Implemented Interfaces:
- Iterable<T>
A collection of AOT services that can be 
loaded from
 a SpringFactoriesLoader or obtained from a ListableBeanFactory.- Since:
- 6.0
- Author:
- Phillip Webb
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classLoader class used to actually load the services.static enumSources from which services were obtained.
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionasList()Return the AOT services as aList.static AotServices.LoaderCreate a newAotServices.Loaderthat will obtain AOT services from "META-INF/spring/aot.factories".static AotServices.Loaderfactories(ClassLoader classLoader) Create a newAotServices.Loaderthat will obtain AOT services from "META-INF/spring/aot.factories".static AotServices.Loaderfactories(SpringFactoriesLoader springFactoriesLoader) Create a newAotServices.Loaderthat will obtain AOT services from the givenSpringFactoriesLoader.static AotServices.LoaderfactoriesAndBeans(ListableBeanFactory beanFactory) Create a newAotServices.Loaderthat will obtain AOT services from "META-INF/spring/aot.factories" as well as the givenListableBeanFactory.static AotServices.LoaderfactoriesAndBeans(SpringFactoriesLoader springFactoriesLoader, ListableBeanFactory beanFactory) Create a newAotServices.Loaderthat will obtain AOT services from the givenSpringFactoriesLoaderandListableBeanFactory.findByBeanName(String beanName) Find the AOT service that was loaded for the given bean name.Get the source of the given service.iterator()stream()Return aStreamof the AOT services.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Field Details- 
FACTORIES_RESOURCE_LOCATIONThe location to look for AOT factories.- See Also:
 
 
- 
- 
Method Details- 
factoriesCreate a newAotServices.Loaderthat will obtain AOT services from "META-INF/spring/aot.factories".- Returns:
- a new AotServices.Loaderinstance
 
- 
factoriesCreate a newAotServices.Loaderthat will obtain AOT services from "META-INF/spring/aot.factories".- Parameters:
- classLoader- the class loader used to load the factories resource
- Returns:
- a new AotServices.Loaderinstance
 
- 
factoriesCreate a newAotServices.Loaderthat will obtain AOT services from the givenSpringFactoriesLoader.- Parameters:
- springFactoriesLoader- the spring factories loader
- Returns:
- a new AotServices.Loaderinstance
 
- 
factoriesAndBeansCreate a newAotServices.Loaderthat will obtain AOT services from "META-INF/spring/aot.factories" as well as the givenListableBeanFactory.- Parameters:
- beanFactory- the bean factory
- Returns:
- a new AotServices.Loaderinstance
 
- 
factoriesAndBeanspublic static AotServices.Loader factoriesAndBeans(SpringFactoriesLoader springFactoriesLoader, ListableBeanFactory beanFactory) Create a newAotServices.Loaderthat will obtain AOT services from the givenSpringFactoriesLoaderandListableBeanFactory.- Parameters:
- springFactoriesLoader- the spring factories loader
- beanFactory- the bean factory
- Returns:
- a new AotServices.Loaderinstance
 
- 
iterator
- 
streamReturn aStreamof the AOT services.- Returns:
- a stream of the services
 
- 
asListReturn the AOT services as aList.- Returns:
- a list of the services
 
- 
findByBeanNameFind the AOT service that was loaded for the given bean name.- Parameters:
- beanName- the bean name
- Returns:
- the AOT service or null
 
- 
getSourceGet the source of the given service.- Parameters:
- service- the service instance
- Returns:
- the source of the service
 
 
-