Commit 8fd8a9b6 authored by Madhura Bhave's avatar Madhura Bhave

Fix javadoc

parent 62ec8f37
...@@ -33,11 +33,28 @@ import org.springframework.core.annotation.AliasFor; ...@@ -33,11 +33,28 @@ import org.springframework.core.annotation.AliasFor;
/** /**
* {@link Conditional} that only matches when no {@link Filter} beans of the specified * {@link Conditional} that only matches when no {@link Filter} beans of the specified
* type are contained in the {@link BeanFactory}. This condition will detect both directly * type are contained in the {@link BeanFactory}. This condition will detect both directly
* register {@link Filter} beans as well as those registered via a * registered {@link Filter} beans as well as those registered via a
* {@link FilterRegistrationBean}. * {@link FilterRegistrationBean}.
* <p> * <p>
* When placed on a {@code @Bean} method, the bean class defaults to the return type of * When placed on a {@code @Bean} method, the bean class defaults to the return type of
* the factory method: * the factory method or the type of the {@link Filter} if the bean is a
* {@link FilterRegistrationBean}:
*
* <pre class="code">
* &#064;Configuration
* public class MyAutoConfiguration {
*
* &#064;ConditionalOnMissingFilterBean
* &#064;Bean
* public MyFilter myFilter() {
* ...
* }
*
* }</pre>
* <p>
* In the sample above the condition will match if no bean of type {@code MyFilter} or
* {@code FilterRegistrationBean<MyFilter>} is already contained in the
* {@link BeanFactory}.
* *
* @author Phillip Webb * @author Phillip Webb
* @since 2.1.0 * @since 2.1.0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment