From c4831d2586de5563a637ef307d017f4d8314b2e5 Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Fri, 12 Jan 2024 16:30:24 +0100 Subject: [PATCH] Document that Conditions can be ordered Closes gh-32019 --- .../org/springframework/context/annotation/Condition.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spring-context/src/main/java/org/springframework/context/annotation/Condition.java b/spring-context/src/main/java/org/springframework/context/annotation/Condition.java index 2a63004ca3b4..548018566c82 100644 --- a/spring-context/src/main/java/org/springframework/context/annotation/Condition.java +++ b/spring-context/src/main/java/org/springframework/context/annotation/Condition.java @@ -32,7 +32,14 @@ * over conditions that interact with {@code @Configuration} beans, consider implementing * the {@link ConfigurationCondition} interface. * + *

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