クラス 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 AnnotationAttributes
getAttributes
(AnnotationMetadata metadata) AnnotationMetadata
から適切なAnnotationAttributes
を返します。getAutoConfigurationEntry
(AnnotationMetadata annotationMetadata) インポートする@Configuration
クラスのAnnotationMetadata
に基づいてAutoConfigurationImportSelector.AutoConfigurationEntry
を返します。protected ListSE<AutoConfigurationImportFilter>
protected ListSE<AutoConfigurationImportListener>
protected ClassLoaderSE
protected final ConfigurableListableBeanFactory
getCandidateConfigurations
(AnnotationMetadata metadata, AnnotationAttributes attributes) 考慮すべき自動構成クラス名を返します。protected final Environment
spring.autoconfigure.exclude
プロパティによって除外された自動構成を返します。getExclusions
(AnnotationMetadata metadata, AnnotationAttributes attributes) 候補構成を制限するすべての除外を返します。ClassSE<? extends DeferredImportSelector.Group>
int
getOrder()
protected final ResourceLoader
protected void
handleInvalidExcludes
(ListSE<StringSE> invalidExcludes) 指定された無効な除外を処理します。protected boolean
isEnabled
(AnnotationMetadata metadata) protected final <T> ListSE<T>
removeDuplicates
(ListSE<T> list) StringSE[]
selectImports
(AnnotationMetadata annotationMetadata) void
setBeanClassLoader
(ClassLoaderSE classLoader) void
setBeanFactory
(BeanFactory beanFactory) void
setEnvironment
(Environment environment) void
setResourceLoader
(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()