Class CandidateComponentsIndexLoader
java.lang.Object
org.springframework.context.index.CandidateComponentsIndexLoader
@Deprecated(since="6.1",
            forRemoval=true)
public final class CandidateComponentsIndexLoader
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
as of 6.1, in favor of the AOT engine.
Candidate components index loading mechanism for internal use within the framework.
- Since:
- 5.0
- Author:
- Stephane Nicoll
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.The location to look for components.static final StringDeprecated, for removal: This API element is subject to removal in a future version.System property that instructs Spring to ignore the components index, i.e.
- 
Method SummaryModifier and TypeMethodDescriptionstatic CandidateComponentsIndexloadIndex(ClassLoader classLoader) Deprecated, for removal: This API element is subject to removal in a future version.Load and instantiate theCandidateComponentsIndexfrom "META-INF/spring.components", using the given class loader.
- 
Field Details- 
COMPONENTS_RESOURCE_LOCATIONDeprecated, for removal: This API element is subject to removal in a future version.The location to look for components.Can be present in multiple JAR files. - See Also:
 
- 
IGNORE_INDEXDeprecated, for removal: This API element is subject to removal in a future version.System property that instructs Spring to ignore the components index, i.e. to always returnnullfromloadIndex(ClassLoader).The default is "false", allowing for regular use of the index. Switching this flag to truefulfills a corner case scenario when an index is partially available for some libraries (or use cases) but couldn't be built for the whole application. In this case, the application context fallbacks to a regular classpath arrangement (i.e. as though no index were present at all).- See Also:
 
 
- 
- 
Method Details- 
loadIndexDeprecated, for removal: This API element is subject to removal in a future version.Load and instantiate theCandidateComponentsIndexfrom "META-INF/spring.components", using the given class loader. If no index is available, returnnull.- Parameters:
- classLoader- the ClassLoader to use for loading (can be- nullto use the default)
- Returns:
- the index to use or nullif no index was found
- Throws:
- IllegalArgumentException- if any module index cannot be loaded or if an error occurs while creating- CandidateComponentsIndex
 
 
-