public final class ImportCandidates extends Object implements Iterable<String>
@Configuration
import candidates, usually auto-configurations.
The load(Class, ClassLoader)
method can be used to discover the import
candidates.Modifier and Type | Method and Description |
---|---|
Iterator<String> |
iterator() |
static ImportCandidates |
load(Class<?> annotation,
ClassLoader classLoader)
Loads the names of import candidates from the classpath.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public static ImportCandidates load(Class<?> annotation, ClassLoader classLoader)
META-INF/spring/full-qualified-annotation-name.import
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