Annotation Interface AutoConfigureOrder


@Retention(RUNTIME) @Target({TYPE,METHOD,FIELD}) @Documented public @interface AutoConfigureOrder
Auto-configuration specific variant of Spring Framework's @Order annotation. Allows auto-configuration classes to be ordered among themselves without affecting the order of configuration classes passed to AnnotationConfigApplicationContext.register(Class...).

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.3.0
Author:
Andy Wilkinson
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    The order value.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The default order value.
  • Field Details

    • DEFAULT_ORDER

      static final int DEFAULT_ORDER
      The default order value.
      See Also:
  • Element Details

    • value

      int value
      The order value. Default is 0.
      Returns:
      the order value
      See Also:
      Default:
      0