类 AnnotationConfigReactiveWebApplicationContext

所有已实现的接口:
Closeable, AutoCloseable, BeanFactory, HierarchicalBeanFactory, ListableBeanFactory, BeanDefinitionRegistry, ConfigurableReactiveWebApplicationContext, ReactiveWebApplicationContext, AnnotationConfigRegistry, ApplicationContext, ApplicationEventPublisher, ConfigurableApplicationContext, Lifecycle, MessageSource, AliasRegistry, EnvironmentCapable, ResourceLoader, ResourcePatternResolver

public class AnnotationConfigReactiveWebApplicationContext extends AnnotationConfigApplicationContext implements ConfigurableReactiveWebApplicationContext
ConfigurableReactiveWebApplicationContext that accepts annotated classes as input - in particular @Configuration-annotated classes, but also plain @Component classes and JSR-330 compliant classes using javax.inject annotations. Allows for registering classes one by one (specifying class names as config location) as well as for classpath scanning (specifying base packages as config location).

Note: In case of multiple @Configuration classes, later @Bean definitions will override ones defined in earlier loaded files. This can be leveraged to deliberately override certain bean definitions through an extra Configuration class.

从以下版本开始:
2.0.0
作者:
Phillip Webb, Stephane Nicoll
另请参阅:
  • 构造器详细资料

    • AnnotationConfigReactiveWebApplicationContext

      public AnnotationConfigReactiveWebApplicationContext()
      Create a new AnnotationConfigReactiveWebApplicationContext that needs to be populated through AnnotationConfigApplicationContext.register(java.lang.Class<?>...) calls and then manually refreshed.
    • AnnotationConfigReactiveWebApplicationContext

      public AnnotationConfigReactiveWebApplicationContext(DefaultListableBeanFactory beanFactory)
      Create a new AnnotationConfigApplicationContext with the given DefaultListableBeanFactory.
      参数:
      beanFactory - the DefaultListableBeanFactory instance to use for this context
      从以下版本开始:
      2.2.0
    • AnnotationConfigReactiveWebApplicationContext

      public AnnotationConfigReactiveWebApplicationContext(Class<?>... annotatedClasses)
      Create a new AnnotationConfigApplicationContext, deriving bean definitions from the given annotated classes and automatically refreshing the context.
      参数:
      annotatedClasses - one or more annotated classes, e.g. @Configuration classes
      从以下版本开始:
      2.2.0
    • AnnotationConfigReactiveWebApplicationContext

      public AnnotationConfigReactiveWebApplicationContext(String... basePackages)
      Create a new AnnotationConfigApplicationContext, scanning for bean definitions in the given packages and automatically refreshing the context.
      参数:
      basePackages - the packages to check for annotated classes
      从以下版本开始:
      2.2.0
  • 方法详细资料