Skip to content

Commit c10943c

Browse files
committed
Polish Javadoc
Closes gh-4936
1 parent 594c891 commit c10943c

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnBean.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2015 the original author or authors.
2+
* Copyright 2012-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -30,6 +30,11 @@
3030
/**
3131
* {@link Conditional} that only matches when the specified bean classes and/or names are
3232
* already contained in the {@link BeanFactory}.
33+
* <p>
34+
* The condition can only match the bean definitions that have been processed by the
35+
* application context so far and, as such, it is strongly recommended to use this
36+
* condition on auto-configuration classes only. If a candidate bean may be created by
37+
* another auto-configuration, make sure that the one using this condition runs after.
3338
*
3439
* @author Phillip Webb
3540
*/

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnMissingBean.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2015 the original author or authors.
2+
* Copyright 2012-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -30,6 +30,11 @@
3030
/**
3131
* {@link Conditional} that only matches when the specified bean classes and/or names are
3232
* not already contained in the {@link BeanFactory}.
33+
* <p>
34+
* The condition can only match the bean definitions that have been processed by the
35+
* application context so far and, as such, it is strongly recommended to use this
36+
* condition on auto-configuration classes only. If a candidate bean may be created by
37+
* another auto-configuration, make sure that the one using this condition runs after.
3338
*
3439
* @author Phillip Webb
3540
* @author Andy Wilkinson

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnSingleCandidate.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2015 the original author or authors.
2+
* Copyright 2012-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -33,6 +33,11 @@
3333
* The condition will also match if multiple matching bean instances are already contained
3434
* in the {@link BeanFactory} but a primary candidate has been defined; essentially, the
3535
* condition match if auto-wiring a bean with the defined type will succeed.
36+
* <p>
37+
* The condition can only match the bean definitions that have been processed by the
38+
* application context so far and, as such, it is strongly recommended to use this
39+
* condition on auto-configuration classes only. If a candidate bean may be created by
40+
* another auto-configuration, make sure that the one using this condition runs after.
3641
*
3742
* @author Stephane Nicoll
3843
* @since 1.3.0

0 commit comments

Comments
 (0)