Annotation Interface AutoConfigureBefore


@Retention(RUNTIME) @Target(TYPE) @Documented public @interface AutoConfigureBefore
Hint that an auto-configuration should be applied before other specified auto-configuration classes.

As with standard @Configuration classes, the order in which auto-configuration classes are applied only affects the order in which their beans are defined. The order in which those beans are subsequently created is unaffected and is determined by each bean's dependencies and any @DependsOn relationships.

Since:
1.0.0
Author:
Phillip Webb
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The names of the auto-configuration classes that should have not yet been applied.
    Class<?>[]
    The auto-configuration classes that should have not yet been applied.
  • Element Details

    • value

      Class<?>[] value
      The auto-configuration classes that should have not yet been applied.

      Since this annotation is parsed by loading class bytecode, it is safe to specify classes here that may ultimately not be on the classpath, but only if this annotation is directly on the affected component and not if this annotation is used as a composed, meta-annotation. In order to use this annotation as a meta-annotation, only use the name() attribute.

      Returns:
      the classes
      Default:
      {}
    • name

      String[] name
      The names of the auto-configuration classes that should have not yet been applied. In the unusual case that an auto-configuration class is not a top-level class, its class name should use $ to separate it from its containing class, for example com.example.Outer$NestedAutoConfiguration.
      Returns:
      the class names
      Since:
      1.2.2
      Default:
      {}