Class BootstrapImportSelector
java.lang.Object
org.springframework.cloud.bootstrap.BootstrapImportSelector
- All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.annotation.DeferredImportSelector, org.springframework.context.annotation.ImportSelector, org.springframework.context.EnvironmentAware
public class BootstrapImportSelector
extends Object
implements org.springframework.context.EnvironmentAware, org.springframework.context.annotation.DeferredImportSelector
This class uses
SpringFactoriesLoader to load BootstrapConfiguration
entries from spring.factories. The classes are then loaded so they can be
sorted using AnnotationAwareOrderComparator.sort(List). This class is a
DeferredImportSelector so @Conditional annotations on imported classes
are supported.- Author:
- Spencer Gibb
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.context.annotation.DeferredImportSelector
org.springframework.context.annotation.DeferredImportSelector.Group -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]selectImports(org.springframework.core.type.AnnotationMetadata annotationMetadata) voidsetEnvironment(org.springframework.core.env.Environment environment) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.annotation.DeferredImportSelector
getImportGroupMethods inherited from interface org.springframework.context.annotation.ImportSelector
getExclusionFilter
-
Constructor Details
-
BootstrapImportSelector
public BootstrapImportSelector()
-
-
Method Details
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) - Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-
selectImports
- Specified by:
selectImportsin interfaceorg.springframework.context.annotation.ImportSelector
-