public class AutoConfigurationImportSelector extends ObjectSE implements DeferredImportSelector, BeanClassLoaderAware, ResourceLoaderAware, BeanFactoryAware, EnvironmentAware, Ordered
auto-configuration
を処理する DeferredImportSelector
。このクラスは、@EnableAutoConfiguration
のカスタムバリアントが必要な場合にサブクラス化することもできます。EnableAutoConfiguration
修飾子と型 | クラスと説明 |
---|---|
protected static class | AutoConfigurationImportSelector.AutoConfigurationEntry |
DeferredImportSelector.Group
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
コンストラクターと説明 |
---|
AutoConfigurationImportSelector() |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public StringSE[] selectImports(AnnotationMetadata annotationMetadata)
ImportSelector
の selectImports
public PredicateSE<StringSE> getExclusionFilter()
ImportSelector
の getExclusionFilter
protected AutoConfigurationImportSelector.AutoConfigurationEntry getAutoConfigurationEntry(AnnotationMetadata annotationMetadata)
@Configuration
クラスの AnnotationMetadata
に基づいて AutoConfigurationImportSelector.AutoConfigurationEntry
を返します。annotationMetadata
- 構成クラスのアノテーションメタデータ public ClassSE<? extends DeferredImportSelector.Group> getImportGroup()
DeferredImportSelector
の getImportGroup
protected boolean isEnabled(AnnotationMetadata metadata)
protected AnnotationAttributes getAttributes(AnnotationMetadata metadata)
metadata
- アノテーションメタデータ protected ClassSE<?> getAnnotationClass()
protected ListSE<StringSE> getCandidateConfigurations(AnnotationMetadata metadata, AnnotationAttributes attributes)
SpringFactoriesLoader
と getSpringFactoriesLoaderFactoryClass()
を使用して候補をロードします。metadata
- ソースメタデータ attributes
- annotation attributes
protected ClassSE<?> getSpringFactoriesLoaderFactoryClass()
SpringFactoriesLoader
によって使用されるクラスを返します。protected void handleInvalidExcludes(ListSE<StringSE> invalidExcludes)
invalidExcludes
- 無効な除外のリスト (常に少なくとも 1 つの要素があります)protected SetSE<StringSE> getExclusions(AnnotationMetadata metadata, AnnotationAttributes attributes)
metadata
- ソースメタデータ attributes
- annotation attributes
protected ListSE<StringSE> getExcludeAutoConfigurationsProperty()
spring.autoconfigure.exclude
プロパティによって除外された自動構成を返します。protected ListSE<AutoConfigurationImportFilter> getAutoConfigurationImportFilters()
protected final ListSE<StringSE> asList(AnnotationAttributes attributes, StringSE name)
protected ListSE<AutoConfigurationImportListener> getAutoConfigurationImportListeners()
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
BeanFactoryAware
の setBeanFactory
BeansException
protected final ConfigurableListableBeanFactory getBeanFactory()
public void setBeanClassLoader(ClassLoaderSE classLoader)
BeanClassLoaderAware
の setBeanClassLoader
protected ClassLoaderSE getBeanClassLoader()
public void setEnvironment(Environment environment)
EnvironmentAware
の setEnvironment
protected final Environment getEnvironment()
public void setResourceLoader(ResourceLoader resourceLoader)
ResourceLoaderAware
の setResourceLoader
protected final ResourceLoader getResourceLoader()