|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
/*
|
|
|
|
|
* Copyright 2012-2015 the original author or authors.
|
|
|
|
|
* Copyright 2012-2016 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.
|
|
|
|
@ -33,6 +33,11 @@ import org.springframework.context.annotation.Conditional;
|
|
|
|
|
* The condition will also match if multiple matching bean instances are already contained
|
|
|
|
|
* in the {@link BeanFactory} but a primary candidate has been defined; essentially, the
|
|
|
|
|
* condition match if auto-wiring a bean with the defined type will succeed.
|
|
|
|
|
* <p>
|
|
|
|
|
* The condition can only match the bean definitions that have been processed by the
|
|
|
|
|
* application context so far and, as such, it is strongly recommended to use this
|
|
|
|
|
* condition on auto-configuration classes only. If a candidate bean may be created by
|
|
|
|
|
* another auto-configuration, make sure that the one using this condition runs after.
|
|
|
|
|
*
|
|
|
|
|
* @author Stephane Nicoll
|
|
|
|
|
* @since 1.3.0
|
|
|
|
|