public class AutoConfigurationImportSelector extends ObjectSE implements DeferredImportSelector, BeanClassLoaderAware, ResourceLoaderAware, BeanFactoryAware, EnvironmentAware, Ordered
auto-configuration を処理する DeferredImportSelector。このクラスは、@EnableAutoConfiguration のカスタムバリアントが必要な場合にサブクラス化することもできます。EnableAutoConfiguration| 修飾子と型 | クラスと説明 |
|---|---|
protected static class | AutoConfigurationImportSelector.AutoConfigurationEntry |
DeferredImportSelector.GroupHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| コンストラクターと説明 |
|---|
AutoConfigurationImportSelector() |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic StringSE[] selectImports(AnnotationMetadata annotationMetadata)
ImportSelector 内の selectImports protected AutoConfigurationImportSelector.AutoConfigurationEntry getAutoConfigurationEntry(AutoConfigurationMetadata autoConfigurationMetadata, AnnotationMetadata annotationMetadata)
@Configuration クラスの AnnotationMetadata に基づいて AutoConfigurationImportSelector.AutoConfigurationEntry を返します。autoConfigurationMetadata - 自動構成メタデータ 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 attributesprotected ClassSE<?> getSpringFactoriesLoaderFactoryClass()
SpringFactoriesLoader によって使用されるクラスを返します。protected void handleInvalidExcludes(ListSE<StringSE> invalidExcludes)
invalidExcludes - 無効な除外のリスト (常に少なくとも 1 つの要素があります)protected SetSE<StringSE> getExclusions(AnnotationMetadata metadata, AnnotationAttributes attributes)
metadata - ソースメタデータ attributes - annotation attributesprotected 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 BeansExceptionprotected 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()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.