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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    selectImports(org.springframework.core.type.AnnotationMetadata annotationMetadata)
     
    void
    setEnvironment(org.springframework.core.env.Environment environment)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.context.annotation.DeferredImportSelector

    getImportGroup

    Methods 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:
      setEnvironment in interface org.springframework.context.EnvironmentAware
    • selectImports

      public String[] selectImports(org.springframework.core.type.AnnotationMetadata annotationMetadata)
      Specified by:
      selectImports in interface org.springframework.context.annotation.ImportSelector