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 usesSpringFactoriesLoaderto loadBootstrapConfigurationentries fromspring.factories. The classes are then loaded so they can be sorted usingAnnotationAwareOrderComparator.sort(List). This class is aDeferredImportSelectorso@Conditionalannotations on imported classes are supported.- Author:
- Spencer Gibb
-
-
Constructor Summary
Constructors Constructor Description BootstrapImportSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]selectImports(org.springframework.core.type.AnnotationMetadata annotationMetadata)voidsetEnvironment(org.springframework.core.env.Environment environment)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-
selectImports
public String[] selectImports(org.springframework.core.type.AnnotationMetadata annotationMetadata)
- Specified by:
selectImportsin interfaceorg.springframework.context.annotation.ImportSelector
-
-