From fc29f548689450e77b2c1950ee3bf1f37d8aed5e Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Thu, 18 Jan 2018 23:20:08 -0800 Subject: [PATCH] Make Context implement AnnotationConfigRegistry Update `AnnotationConfigReactiveWebServerApplicationContext` to implement `AnnotationConfigRegistry`. Fixes gh-11686 --- .../AnnotationConfigReactiveWebServerApplicationContext.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/reactive/context/AnnotationConfigReactiveWebServerApplicationContext.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/reactive/context/AnnotationConfigReactiveWebServerApplicationContext.java index 5c0f692124..31d49296b0 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/reactive/context/AnnotationConfigReactiveWebServerApplicationContext.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/reactive/context/AnnotationConfigReactiveWebServerApplicationContext.java @@ -21,6 +21,7 @@ import org.springframework.beans.factory.support.BeanNameGenerator; import org.springframework.beans.factory.support.DefaultListableBeanFactory; import org.springframework.context.annotation.AnnotatedBeanDefinitionReader; import org.springframework.context.annotation.AnnotationConfigApplicationContext; +import org.springframework.context.annotation.AnnotationConfigRegistry; import org.springframework.context.annotation.AnnotationConfigUtils; import org.springframework.context.annotation.AnnotationScopeMetadataResolver; import org.springframework.context.annotation.ClassPathBeanDefinitionScanner; @@ -51,7 +52,7 @@ import org.springframework.util.ObjectUtils; * @see AnnotationConfigApplicationContext */ public class AnnotationConfigReactiveWebServerApplicationContext - extends ReactiveWebServerApplicationContext { + extends ReactiveWebServerApplicationContext implements AnnotationConfigRegistry { private final AnnotatedBeanDefinitionReader reader;