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 c38fffc33e2..2a63004ca3b 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 @@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,16 +20,16 @@ import org.springframework.beans.factory.config.BeanFactoryPostProcessor; import org.springframework.core.type.AnnotatedTypeMetadata; /** - * A single {@code condition} that must be {@linkplain #matches matched} in order - * for a component to be registered. + * A single condition that must be {@linkplain #matches matched} in order for a + * component to be registered. * - *

Conditions are checked immediately before the bean-definition is due to be + *

Conditions are checked immediately before the bean definition is due to be * registered and are free to veto registration based on any criteria that can * be determined at that point. * - *

Conditions must follow the same restrictions as {@link BeanFactoryPostProcessor} + *

Conditions must follow the same restrictions as a {@link BeanFactoryPostProcessor} * and take care to never interact with bean instances. For more fine-grained control - * of conditions that interact with {@code @Configuration} beans consider implementing + * over conditions that interact with {@code @Configuration} beans, consider implementing * the {@link ConfigurationCondition} interface. * * @author Phillip Webb