Make AnnotationConfigSWSApp…Context implement AnnotationConfigRegistry

Closes gh-11658
This commit is contained in:
Andy Wilkinson
2018-01-17 17:30:16 +00:00
parent a5fd3fbfbd
commit d8b3c7cc3c

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@ import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
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.AnnotationConfigRegistry;
import org.springframework.context.annotation.AnnotationConfigUtils;
import org.springframework.context.annotation.AnnotationScopeMetadataResolver;
import org.springframework.context.annotation.ClassPathBeanDefinitionScanner;
@@ -48,7 +49,7 @@ import org.springframework.web.context.support.AnnotationConfigWebApplicationCon
* @see AnnotationConfigWebApplicationContext
*/
public class AnnotationConfigServletWebServerApplicationContext
extends ServletWebServerApplicationContext {
extends ServletWebServerApplicationContext implements AnnotationConfigRegistry {
private final AnnotatedBeanDefinitionReader reader;