Fix javadoc

This commit is contained in:
Madhura Bhave 2019-04-12 12:32:23 -07:00
parent e6d1b2c30f
commit b4d6ac1f41
1 changed files with 18 additions and 1 deletions

View File

@ -37,7 +37,24 @@ import org.springframework.core.annotation.AliasFor;
* {@link FilterRegistrationBean}.
* <p>
* 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
* @since 2.1.0