Browse Source

Polishing

pull/29447/head
Sam Brannen 2 years ago
parent
commit
d0b162a76c
  1. 21
      spring-beans/src/main/java/org/springframework/beans/factory/ListableBeanFactory.java
  2. 4
      spring-webflux/src/main/java/org/springframework/web/reactive/function/BodyExtractor.java

21
spring-beans/src/main/java/org/springframework/beans/factory/ListableBeanFactory.java

@ -323,7 +323,8 @@ public interface ListableBeanFactory extends BeanFactory { @@ -323,7 +323,8 @@ public interface ListableBeanFactory extends BeanFactory {
* (at class, interface or factory method level of the specified bean)
* @return the names of all matching beans
* @since 4.0
* @see #findAnnotationOnBean
* @see #getBeansWithAnnotation(Class)
* @see #findAnnotationOnBean(String, Class)
*/
String[] getBeanNamesForAnnotation(Class<? extends Annotation> annotationType);
@ -338,8 +339,8 @@ public interface ListableBeanFactory extends BeanFactory { @@ -338,8 +339,8 @@ public interface ListableBeanFactory extends BeanFactory {
* keys and the corresponding bean instances as values
* @throws BeansException if a bean could not be created
* @since 3.0
* @see #findAnnotationOnBean
* @see #findAllAnnotationsOnBean(String, Class, boolean)
* @see #findAnnotationOnBean(String, Class)
* @see #findAnnotationOnBean(String, Class, boolean)
* @see #findAllAnnotationsOnBean(String, Class, boolean)
*/
Map<String, Object> getBeansWithAnnotation(Class<? extends Annotation> annotationType) throws BeansException;
@ -354,8 +355,10 @@ public interface ListableBeanFactory extends BeanFactory { @@ -354,8 +355,10 @@ public interface ListableBeanFactory extends BeanFactory {
* @return the annotation of the given type if found, or {@code null} otherwise
* @throws NoSuchBeanDefinitionException if there is no bean with the given name
* @since 3.0
* @see #getBeanNamesForAnnotation
* @see #getBeansWithAnnotation
* @see #findAnnotationOnBean(String, Class, boolean)
* @see #findAllAnnotationsOnBean(String, Class, boolean)
* @see #getBeanNamesForAnnotation(Class)
* @see #getBeansWithAnnotation(Class)
* @see #getType(String)
*/
@Nullable
@ -374,8 +377,10 @@ public interface ListableBeanFactory extends BeanFactory { @@ -374,8 +377,10 @@ public interface ListableBeanFactory extends BeanFactory {
* @return the annotation of the given type if found, or {@code null} otherwise
* @throws NoSuchBeanDefinitionException if there is no bean with the given name
* @since 5.3.14
* @see #getBeanNamesForAnnotation
* @see #getBeansWithAnnotation
* @see #findAnnotationOnBean(String, Class)
* @see #findAllAnnotationsOnBean(String, Class, boolean)
* @see #getBeanNamesForAnnotation(Class)
* @see #getBeansWithAnnotation(Class)
* @see #getType(String, boolean)
*/
@Nullable
@ -395,7 +400,7 @@ public interface ListableBeanFactory extends BeanFactory { @@ -395,7 +400,7 @@ public interface ListableBeanFactory extends BeanFactory {
* @return the set of annotations of the given type found (potentially empty)
* @throws NoSuchBeanDefinitionException if there is no bean with the given name
* @since 6.0
* @see #getBeanNamesForAnnotation
* @see #getBeanNamesForAnnotation(Class)
* @see #findAnnotationOnBean(String, Class, boolean)
* @see #getType(String, boolean)
*/

4
spring-webflux/src/main/java/org/springframework/web/reactive/function/BodyExtractor.java

@ -38,7 +38,7 @@ public interface BodyExtractor<T, M extends ReactiveHttpInputMessage> { @@ -38,7 +38,7 @@ public interface BodyExtractor<T, M extends ReactiveHttpInputMessage> {
/**
* Extract from the given input message.
* @param inputMessage the request to extract from
* @param inputMessage the message to extract from
* @param context the configuration to use
* @return the extracted data
*/
@ -52,7 +52,7 @@ public interface BodyExtractor<T, M extends ReactiveHttpInputMessage> { @@ -52,7 +52,7 @@ public interface BodyExtractor<T, M extends ReactiveHttpInputMessage> {
/**
* Return the {@link HttpMessageReader HttpMessageReaders} to be used for body extraction.
* @return the stream of message readers
* @return the list of message readers
*/
List<HttpMessageReader<?>> messageReaders();

Loading…
Cancel
Save