类 ImportAutoConfigurationImportSelector
java.lang.Object
cn.taketoday.context.annotation.config.AutoConfigurationImportSelector
cn.taketoday.context.annotation.config.ImportAutoConfigurationImportSelector
- 所有已实现的接口:
Aware,BeanClassLoaderAware,BeanFactoryAware,DeterminableImports,DeferredImportSelector,EnvironmentAware,ResourceLoaderAware,ImportSelector,cn.taketoday.core.Ordered
public class ImportAutoConfigurationImportSelector
extends AutoConfigurationImportSelector
implements DeterminableImports
Variant of
AutoConfigurationImportSelector for
@ImportAutoConfiguration.- 从以下版本开始:
- 4.0 2022/2/1 23:56
- 作者:
- Phillip Webb, Andy Wilkinson, Harry Yang
-
嵌套类概要
从类继承的嵌套类/接口 cn.taketoday.context.annotation.config.AutoConfigurationImportSelector
AutoConfigurationImportSelector.AutoConfigurationEntry从接口继承的嵌套类/接口 cn.taketoday.context.annotation.DeferredImportSelector
DeferredImportSelector.Group -
字段概要
从接口继承的字段 cn.taketoday.context.loader.ImportSelector
NO_IMPORTS从接口继承的字段 cn.taketoday.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明determineImports(cn.taketoday.core.type.AnnotationMetadata metadata) Return a set of objects that represent the imports.protected final Map<Class<?>,List<Annotation>> getAnnotations(cn.taketoday.core.type.AnnotationMetadata metadata) protected cn.taketoday.core.annotation.AnnotationAttributesgetAttributes(cn.taketoday.core.type.AnnotationMetadata metadata) Return the appropriateAnnotationAttributesfrom theAnnotationMetadata.getCandidateConfigurations(cn.taketoday.core.type.AnnotationMetadata metadata, cn.taketoday.core.annotation.AnnotationAttributes attributes) Return the auto-configuration class names that should be considered.getExclusions(cn.taketoday.core.type.AnnotationMetadata metadata, cn.taketoday.core.annotation.AnnotationAttributes attributes) Return any exclusions that limit the candidate configurations.intgetOrder()protected Collection<String>getStrategiesNames(Class<?> source) protected voidhandleInvalidExcludes(List<String> invalidExcludes) Handle any invalid excludes that have been specified.从类继承的方法 cn.taketoday.context.annotation.config.AutoConfigurationImportSelector
asList, getAnnotationClass, getAutoConfigurationEntry, getAutoConfigurationImportFilters, getAutoConfigurationImportListeners, getBeanClassLoader, getBeanFactory, getEnvironment, getExcludeAutoConfigurationsProperty, getExclusionFilter, getImportGroup, getResourceLoader, getStrategyClass, isEnabled, removeDuplicates, selectImports, setBeanClassLoader, setBeanFactory, setEnvironment, setResourceLoader
-
构造器详细资料
-
ImportAutoConfigurationImportSelector
public ImportAutoConfigurationImportSelector()
-
-
方法详细资料
-
determineImports
从接口复制的说明:DeterminableImportsReturn a set of objects that represent the imports. Objects within the returnedSetmust implement a validhashCodeandequals.Imports from multiple
DeterminableImportsinstances may be combined by the caller to create a complete set.Unlike
ImportSelectorandImportBeanDefinitionRegistraranyAwarecallbacks will not be invoked before this method is called.- 指定者:
determineImports在接口中DeterminableImports- 参数:
metadata- the source meta-data- 返回:
- a key representing the annotations that actually drive the import
-
getAttributes
@Nullable protected cn.taketoday.core.annotation.AnnotationAttributes getAttributes(cn.taketoday.core.type.AnnotationMetadata metadata) 从类复制的说明:AutoConfigurationImportSelectorReturn the appropriateAnnotationAttributesfrom theAnnotationMetadata. By default this method will return attributes forAutoConfigurationImportSelector.getAnnotationClass().- 覆盖:
getAttributes在类中AutoConfigurationImportSelector- 参数:
metadata- the annotation metadata- 返回:
- annotation attributes
-
getCandidateConfigurations
protected List<String> getCandidateConfigurations(cn.taketoday.core.type.AnnotationMetadata metadata, @Nullable cn.taketoday.core.annotation.AnnotationAttributes attributes) 从类复制的说明:AutoConfigurationImportSelectorReturn the auto-configuration class names that should be considered. By default this method will load candidates usingTodayStrategieswithAutoConfigurationImportSelector.getStrategyClass().- 覆盖:
getCandidateConfigurations在类中AutoConfigurationImportSelector- 参数:
metadata- the source metadataattributes- theannotation attributes- 返回:
- a list of candidate configurations
-
getStrategiesNames
-
getExclusions
protected Set<String> getExclusions(cn.taketoday.core.type.AnnotationMetadata metadata, @Nullable cn.taketoday.core.annotation.AnnotationAttributes attributes) 从类复制的说明:AutoConfigurationImportSelectorReturn any exclusions that limit the candidate configurations.- 覆盖:
getExclusions在类中AutoConfigurationImportSelector- 参数:
metadata- the source metadataattributes- theannotation attributes- 返回:
- exclusions or an empty set
-
getAnnotations
protected final Map<Class<?>,List<Annotation>> getAnnotations(cn.taketoday.core.type.AnnotationMetadata metadata) -
getOrder
public int getOrder()- 指定者:
getOrder在接口中cn.taketoday.core.Ordered- 覆盖:
getOrder在类中AutoConfigurationImportSelector
-
handleInvalidExcludes
从类复制的说明:AutoConfigurationImportSelectorHandle any invalid excludes that have been specified.- 覆盖:
handleInvalidExcludes在类中AutoConfigurationImportSelector- 参数:
invalidExcludes- the list of invalid excludes (will always have at least one element)
-