类 ImportCandidates
java.lang.Object
org.springframework.boot.context.annotation.ImportCandidates
Contains
@Configuration
import candidates, usually auto-configurations.
The load(Class, ClassLoader)
method can be used to discover the import
candidates.- 从以下版本开始:
- 2.7.0
- 作者:
- Moritz Halbritter, Scott Frederick
-
方法概要
修饰符和类型方法说明Returns the list of loaded import candidates.iterator()
static ImportCandidates
load
(Class<?> annotation, ClassLoader classLoader) Loads the names of import candidates from the classpath.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 java.lang.Iterable
forEach, spliterator
-
方法详细资料
-
iterator
-
getCandidates
Returns the list of loaded import candidates.- 返回:
- the list of import candidates
-
load
Loads the names of import candidates from the classpath. The names of the import candidates are stored in files namedMETA-INF/spring/full-qualified-annotation-name.imports
on the classpath. Every line contains the full qualified name of the candidate class. Comments are supported using the # character.- 参数:
annotation
- annotation to loadclassLoader
- class loader to use for loading- 返回:
- list of names of annotated classes
-