Class 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 Detail

      • BootstrapImportSelector

        public BootstrapImportSelector()
    • Method Detail

      • 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