クラス AutoConfigurationImportSelector
java.lang.ObjectSE
org.springframework.boot.autoconfigure.AutoConfigurationImportSelector
- 実装されているすべてのインターフェース:
Aware、BeanClassLoaderAware、BeanFactoryAware、DeferredImportSelector、ImportSelector、EnvironmentAware、ResourceLoaderAware、Ordered
public class AutoConfigurationImportSelector
extends ObjectSE
implements DeferredImportSelector, BeanClassLoaderAware, ResourceLoaderAware, BeanFactoryAware, EnvironmentAware, Ordered
auto-configuration を処理する DeferredImportSelector。このクラスは、@EnableAutoConfiguration のカスタムバリアントが必要な場合にサブクラス化することもできます。- 導入:
- 1.3.0
- 作成者:
- Phillip Webb, Andy Wilkinson, Stephane Nicoll, Madhura Bhave, Moritz Halbritter, Scott Frederick
- 関連事項:
ネストされたクラスの要約
ネストされたクラスインターフェース org.springframework.context.annotation.DeferredImportSelector から継承されたネストクラス / インターフェース
DeferredImportSelector.Groupフィールドのサマリー
インターフェース org.springframework.core.Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEコンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明asList(AnnotationAttributes attributes, StringSE name) protected ClassSE<?>セレクタが使用するソースアノテーションクラスを返します。protected AnnotationAttributesgetAttributes(AnnotationMetadata metadata) AnnotationMetadataから適切なAnnotationAttributesを返します。getAutoConfigurationEntry(AnnotationMetadata annotationMetadata) インポートする@ConfigurationクラスのAnnotationMetadataに基づいてAutoConfigurationImportSelector.AutoConfigurationEntryを返します。protected ListSE<AutoConfigurationImportFilter>protected ListSE<AutoConfigurationImportListener>protected ClassLoaderSEprotected final ConfigurableListableBeanFactorygetCandidateConfigurations(AnnotationMetadata metadata, AnnotationAttributes attributes) 考慮すべき自動構成クラス名を返します。protected final Environmentspring.autoconfigure.excludeプロパティによって除外された自動構成を返します。getExclusions(AnnotationMetadata metadata, AnnotationAttributes attributes) 候補構成を制限するすべての除外を返します。ClassSE<? extends DeferredImportSelector.Group>intgetOrder()protected final ResourceLoaderprotected voidhandleInvalidExcludes(ListSE<StringSE> invalidExcludes) 指定された無効な除外を処理します。protected booleanisEnabled(AnnotationMetadata metadata) protected final <T> ListSE<T>removeDuplicates(ListSE<T> list) StringSE[]selectImports(AnnotationMetadata annotationMetadata) voidsetBeanClassLoader(ClassLoaderSE classLoader) voidsetBeanFactory(BeanFactory beanFactory) voidsetEnvironment(Environment environment) voidsetResourceLoader(ResourceLoader resourceLoader)
コンストラクターの詳細
AutoConfigurationImportSelector
public AutoConfigurationImportSelector()
メソッドの詳細
selectImports
- 次で指定:
- インターフェース
ImportSelectorのselectImports
getExclusionFilter
- 次で指定:
- インターフェース
ImportSelectorのgetExclusionFilter
getAutoConfigurationEntry
protected AutoConfigurationImportSelector.AutoConfigurationEntry getAutoConfigurationEntry(AnnotationMetadata annotationMetadata) インポートする@ConfigurationクラスのAnnotationMetadataに基づいてAutoConfigurationImportSelector.AutoConfigurationEntryを返します。- パラメーター:
annotationMetadata- 構成クラスのアノテーションメタデータ- 戻り値:
- インポートする必要がある自動構成
getImportGroup
- 次で指定:
- インターフェース
DeferredImportSelectorのgetImportGroup
isEnabled
getAttributes
- パラメーター:
metadata- アノテーションメタデータ- 戻り値:
- アノテーション属性
getAnnotationClass
セレクタが使用するソースアノテーションクラスを返します。- 戻り値:
- アノテーションクラス
getCandidateConfigurations
protected ListSE<StringSE> getCandidateConfigurations(AnnotationMetadata metadata, AnnotationAttributes attributes) 考慮する必要がある自動構成クラス名を返します。デフォルトでは、このメソッドはImportCandidatesを使用して候補をロードします。- パラメーター:
metadata- ソースメタデータattributes-annotation attributes- 戻り値:
- 候補構成のリスト
handleInvalidExcludes
指定された無効な除外を処理します。- パラメーター:
invalidExcludes- 無効な除外のリスト (常に少なくとも 1 つの要素があります)
getExclusions
protected SetSE<StringSE> getExclusions(AnnotationMetadata metadata, AnnotationAttributes attributes) 候補構成を制限するすべての除外を返します。- パラメーター:
metadata- ソースメタデータattributes-annotation attributes- 戻り値:
- 除外または空のセット
getExcludeAutoConfigurationsProperty
spring.autoconfigure.excludeプロパティによって除外された自動構成を返します。- 戻り値:
- 除外された自動構成
- 導入:
- 2.3.2
getAutoConfigurationImportFilters
removeDuplicates
asList
getAutoConfigurationImportListeners
setBeanFactory
- 次で指定:
- インターフェース
BeanFactoryAwareのsetBeanFactory - 例外:
BeansException
getBeanFactory
setBeanClassLoader
- 次で指定:
- インターフェース
BeanClassLoaderAwareのsetBeanClassLoader
getBeanClassLoader
setEnvironment
- 次で指定:
- インターフェース
EnvironmentAwareのsetEnvironment
getEnvironment
setResourceLoader
- 次で指定:
- インターフェース
ResourceLoaderAwareのsetResourceLoader
getResourceLoader
getOrder
public int getOrder()