Browse Source

Document that Conditions can be ordered

Closes gh-32019
pull/31970/head
Sam Brannen 2 years ago
parent
commit
c4831d2586
  1. 7
      spring-context/src/main/java/org/springframework/context/annotation/Condition.java

7
spring-context/src/main/java/org/springframework/context/annotation/Condition.java

@ -32,7 +32,14 @@ import org.springframework.core.type.AnnotatedTypeMetadata; @@ -32,7 +32,14 @@ import org.springframework.core.type.AnnotatedTypeMetadata;
* over conditions that interact with {@code @Configuration} beans, consider implementing
* the {@link ConfigurationCondition} interface.
*
* <p>Multiple conditions on a given class or on a given method will be ordered
* according to the semantics of Spring's {@link org.springframework.core.Ordered}
* interface and {@link org.springframework.core.annotation.Order @Order} annotation.
* See {@link org.springframework.core.annotation.AnnotationAwareOrderComparator}
* for details.
*
* @author Phillip Webb
* @author Sam Brannen
* @since 4.0
* @see ConfigurationCondition
* @see Conditional

Loading…
Cancel
Save