diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java b/spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java index f3b976a3d1..d34b6af0ea 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java @@ -79,19 +79,17 @@ import org.springframework.util.ObjectUtils; import org.springframework.util.StringUtils; /** - * Spring's default implementation of the - * {@link org.springframework.beans.factory.ListableBeanFactory} and - * {@link BeanDefinitionRegistry} interfaces: a full-fledged bean factory - * based on bean definition objects. + * Spring's default implementation of the {@link ConfigurableListableBeanFactory} + * and {@link BeanDefinitionRegistry} interfaces: a full-fledged bean factory + * based on bean definition metadata, extensible through post-processors. * *
Typical usage is registering all bean definitions first (possibly read - * from a bean definition file), before accessing beans. Bean definition lookup + * from a bean definition file), before accessing beans. Bean lookup by name * is therefore an inexpensive operation in a local bean definition table, - * operating on pre-built bean definition metadata objects. + * operating on pre-resolved bean definition metadata objects. * - *
Can be used as a standalone bean factory, or as a superclass for custom - * bean factories. Note that readers for specific bean definition formats are - * typically implemented separately rather than as bean factory subclasses: + *
Note that readers for specific bean definition formats are typically
+ * implemented separately rather than as bean factory subclasses:
* see for example {@link PropertiesBeanDefinitionReader} and
* {@link org.springframework.beans.factory.xml.XmlBeanDefinitionReader}.
*
@@ -108,9 +106,10 @@ import org.springframework.util.StringUtils;
* @author Phillip Webb
* @author Stephane Nicoll
* @since 16 April 2001
- * @see StaticListableBeanFactory
- * @see PropertiesBeanDefinitionReader
- * @see org.springframework.beans.factory.xml.XmlBeanDefinitionReader
+ * @see #registerBeanDefinition
+ * @see #addBeanPostProcessor
+ * @see #getBean
+ * @see #resolveDependency
*/
@SuppressWarnings("serial")
public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFactory
diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RouterFunctions.java b/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RouterFunctions.java
index faafb3f18f..e486fc5842 100644
--- a/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RouterFunctions.java
+++ b/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RouterFunctions.java
@@ -41,9 +41,8 @@ import org.springframework.web.server.adapter.WebHttpHandlerBuilder;
/**
* Central entry point to Spring's functional web framework.
- * Exposes routing functionality, such as to
- * {@linkplain #route() create} a {@code RouterFunction} using a discoverable builder-style API,
- * to
+ * Exposes routing functionality, such as to {@linkplain #route() create} a
+ * {@code RouterFunction} using a discoverable builder-style API, to
* {@linkplain #route(RequestPredicate, HandlerFunction) create} a {@code RouterFunction}
* given a {@code RequestPredicate} and {@code HandlerFunction}, and to do further
* {@linkplain #nest(RequestPredicate, RouterFunction) subrouting} on an existing routing
@@ -72,7 +71,9 @@ public abstract class RouterFunctions {
public static final String URI_TEMPLATE_VARIABLES_ATTRIBUTE =
RouterFunctions.class.getName() + ".uriTemplateVariables";
- private static final HandlerFunction
* RouterFunction<ServerResponse> route =
- * RouterFunctions.route()
- * .GET("/user", RequestPredicates.accept(MediaType.APPLICATION_JSON),
- * userController::listUsers)
+ * RouterFunctions.route()
+ * .GET("/user", RequestPredicates.accept(MediaType.APPLICATION_JSON), userController::listUsers)
* .build();
*
* @param pattern the pattern to match to
@@ -359,9 +359,8 @@ public abstract class RouterFunctions {
* to the {@code addUser} method in {@code userController}:
*
* RouterFunction<ServerResponse> route =
- * RouterFunctions.route()
- * .POST("/user", RequestPredicates.contentType(MediaType.APPLICATION_JSON),
- * userController::addUser)
+ * RouterFunctions.route()
+ * .POST("/user", RequestPredicates.contentType(MediaType.APPLICATION_JSON), userController::addUser)
* .build();
*
* @param pattern the pattern to match to
@@ -389,9 +388,8 @@ public abstract class RouterFunctions {
* to the {@code editUser} method in {@code userController}:
*
* RouterFunction<ServerResponse> route =
- * RouterFunctions.route()
- * .PUT("/user", RequestPredicates.contentType(MediaType.APPLICATION_JSON),
- * userController::editUser)
+ * RouterFunctions.route()
+ * .PUT("/user", RequestPredicates.contentType(MediaType.APPLICATION_JSON), userController::editUser)
* .build();
*
* @param pattern the pattern to match to
@@ -419,9 +417,8 @@ public abstract class RouterFunctions {
* to the {@code editUser} method in {@code userController}:
*
* RouterFunction<ServerResponse> route =
- * RouterFunctions.route()
- * .PATCH("/user", RequestPredicates.contentType(MediaType.APPLICATION_JSON),
- * userController::editUser)
+ * RouterFunctions.route()
+ * .PATCH("/user", RequestPredicates.contentType(MediaType.APPLICATION_JSON), userController::editUser)
* .build();
*
* @param pattern the pattern to match to
@@ -483,11 +480,11 @@ public abstract class RouterFunctions {
* {@code OrderController.routerFunction()}.
* to the {@code changeUser} method in {@code userController}:
*
- * RouterFunction<ServerResponse> route =
+ * RouterFunctionlt;ServerResponsegt; route =
* RouterFunctions.route()
- * .GET("/users", userController::listUsers)
- * .add(orderController.routerFunction());
- * .build();
+ * .GET("/users", userController::listUsers)
+ * .add(orderController.routerFunction());
+ * .build();
*
* @param routerFunction the router function to be added
* @return this builder
@@ -529,10 +526,9 @@ public abstract class RouterFunctions {
* RouterFunctions.route()
* .nest(RequestPredicates.path("/user"), () ->
* RouterFunctions.route()
- * .GET(this::listUsers)
- * .POST(this::createUser);
- * .build();
- * )
+ * .GET(this::listUsers)
+ * .POST(this::createUser)
+ * .build())
* .build();
*
* @param predicate the predicate to test
@@ -555,8 +551,7 @@ public abstract class RouterFunctions {
* RouterFunctions.route()
* .nest(RequestPredicates.path("/user"), builder ->
* builder.GET(this::listUsers)
- * .POST(this::createUser);
- * )
+ * .POST(this::createUser))
* .build();
*
* @param predicate the predicate to test
@@ -601,8 +596,7 @@ public abstract class RouterFunctions {
* RouterFunctions.route()
* .path("/user", builder ->
* builder.GET(this::listUsers)
- * .POST(this::createUser);
- * )
+ * .POST(this::createUser))
* .build();
*
* @param pattern the pattern to match to
@@ -727,7 +721,6 @@ public abstract class RouterFunctions {
* @return the built router function
*/
RouterFunction the type of the response of the function
*/
@@ -883,8 +876,8 @@ public abstract class RouterFunctions {
}
}
- private static final class DefaultRouterFunction