Browse Source

Polish Javadoc for Condition

pull/31970/head
Sam Brannen 2 years ago
parent
commit
e4569defd9
  1. 12
      spring-context/src/main/java/org/springframework/context/annotation/Condition.java

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

@ -1,5 +1,5 @@ @@ -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; @@ -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.
*
* <p>Conditions are checked immediately before the bean-definition is due to be
* <p>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.
*
* <p>Conditions must follow the same restrictions as {@link BeanFactoryPostProcessor}
* <p>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

Loading…
Cancel
Save