接口 AssertableReactiveWebApplicationContext
- 所有超级接口:
org.springframework.context.ApplicationContext,ApplicationContextAssertProvider<org.springframework.boot.web.reactive.context.ConfigurableReactiveWebApplicationContext>,org.springframework.context.ApplicationEventPublisher,org.assertj.core.api.AssertProvider<ApplicationContextAssert<org.springframework.boot.web.reactive.context.ConfigurableReactiveWebApplicationContext>>,AutoCloseable,org.springframework.beans.factory.BeanFactory,Closeable,org.springframework.context.ConfigurableApplicationContext,org.springframework.boot.web.reactive.context.ConfigurableReactiveWebApplicationContext,org.springframework.core.env.EnvironmentCapable,org.springframework.beans.factory.HierarchicalBeanFactory,org.springframework.context.Lifecycle,org.springframework.beans.factory.ListableBeanFactory,org.springframework.context.MessageSource,org.springframework.boot.web.reactive.context.ReactiveWebApplicationContext,org.springframework.core.io.ResourceLoader,org.springframework.core.io.support.ResourcePatternResolver
public interface AssertableReactiveWebApplicationContext extends ApplicationContextAssertProvider<org.springframework.boot.web.reactive.context.ConfigurableReactiveWebApplicationContext>, org.springframework.boot.web.reactive.context.ConfigurableReactiveWebApplicationContext
AReactiveWebApplicationContextthat additionally supports AssertJ style assertions. Can be used to decorate an existing reactive web application context or an application context that failed to start.See
ApplicationContextAssertProviderfor more details.- 从以下版本开始:
- 2.0.0
- 另请参阅:
ReactiveWebApplicationContext,ReactiveWebApplicationContext
方法概要
静态方法 修饰符和类型 方法 说明 static AssertableReactiveWebApplicationContextget(Supplier<? extends org.springframework.boot.web.reactive.context.ConfigurableReactiveWebApplicationContext> contextSupplier)Factory method to create a newAssertableReactiveWebApplicationContextinstance.从接口继承的方法 org.springframework.context.ApplicationContext
getApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDate
从接口继承的方法 org.springframework.boot.test.context.assertj.ApplicationContextAssertProvider
assertThat, close, getSourceApplicationContext, getSourceApplicationContext, getStartupFailure
从接口继承的方法 org.springframework.beans.factory.BeanFactory
containsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getBeanProvider, getBeanProvider, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatch
从接口继承的方法 org.springframework.context.ConfigurableApplicationContext
addApplicationListener, addBeanFactoryPostProcessor, addProtocolResolver, close, getBeanFactory, getEnvironment, isActive, refresh, registerShutdownHook, setEnvironment, setId, setParent
从接口继承的方法 org.springframework.beans.factory.HierarchicalBeanFactory
containsLocalBean, getParentBeanFactory
从接口继承的方法 org.springframework.beans.factory.ListableBeanFactory
containsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation
方法详细资料
get
static AssertableReactiveWebApplicationContext get(Supplier<? extends org.springframework.boot.web.reactive.context.ConfigurableReactiveWebApplicationContext> contextSupplier)
Factory method to create a newAssertableReactiveWebApplicationContextinstance.- 参数:
contextSupplier- a supplier that will either return a fully configuredConfigurableReactiveWebApplicationContextor throw an exception if the context fails to start.- 返回:
- a
AssertableReactiveWebApplicationContextinstance