AssertableReactiveWebApplicationContext

A ReactiveWebApplicationContext that 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 ApplicationContextAssertProvider for more details.

Author

Phillip Webb

Since

2.0.0

See also

Properties

Link copied to clipboard
val APPLICATION_STARTUP_BEAN_NAME: String = "applicationStartup"
Link copied to clipboard
val BOOTSTRAP_EXECUTOR_BEAN_NAME: String = "bootstrapExecutor"
Link copied to clipboard
val CLASSPATH_ALL_URL_PREFIX: String = "classpath*:"
Link copied to clipboard
val CLASSPATH_URL_PREFIX: String = "classpath:"
Link copied to clipboard
Link copied to clipboard
val CONVERSION_SERVICE_BEAN_NAME: String = "conversionService"
Link copied to clipboard
val ENVIRONMENT_BEAN_NAME: String = "environment"
Link copied to clipboard
Link copied to clipboard
val LOAD_TIME_WEAVER_BEAN_NAME: String = "loadTimeWeaver"
Link copied to clipboard
val SHUTDOWN_HOOK_THREAD_NAME: String = "SpringContextShutdownHook"
Link copied to clipboard
val SYSTEM_ENVIRONMENT_BEAN_NAME: String = "systemEnvironment"
Link copied to clipboard
val SYSTEM_PROPERTIES_BEAN_NAME: String = "systemProperties"

Functions

Link copied to clipboard
abstract fun addApplicationListener(listener: ApplicationListener<out Any>)
Link copied to clipboard
Link copied to clipboard
abstract fun addProtocolResolver(resolver: ProtocolResolver)
Link copied to clipboard
abstract fun assertThat(): A

Return an assert for AspectJ.
Link copied to clipboard
abstract fun close()
abstract fun close()
Link copied to clipboard
abstract fun containsBean(name: String): Boolean
Link copied to clipboard
abstract fun containsBeanDefinition(beanName: String): Boolean
Link copied to clipboard
abstract fun containsLocalBean(name: String): Boolean
Link copied to clipboard
abstract fun <A : Annotation?> findAllAnnotationsOnBean(beanName: String, annotationType: Class<A>, allowFactoryBeanInit: Boolean): Set<A>
Link copied to clipboard
abstract fun <A : Annotation?> findAnnotationOnBean(beanName: String, annotationType: Class<A>): A
Link copied to clipboard
open fun <T : ApplicationContextAssertProvider<C>?, C : ApplicationContext?> get(type: Class<T>, contextType: Class<out C>, contextSupplier: Supplier<out C>): T
open fun <T : ApplicationContextAssertProvider<C>?, C : ApplicationContext?> get(type: Class<T>, contextType: Class<out C>, contextSupplier: Supplier<out C>, additionalContextInterfaces: Array<Class<out Any>>): T
Factory method to create a new ApplicationContextAssertProvider instance.
open fun get(contextSupplier: Supplier<out ConfigurableReactiveWebApplicationContext>, additionalContextInterfaces: Array<Class<out Any>>): AssertableReactiveWebApplicationContext
Factory method to create a new AssertableReactiveWebApplicationContext instance.
Link copied to clipboard
abstract fun getAliases(name: String): Array<String>
Link copied to clipboard
abstract fun getApplicationName(): String
Link copied to clipboard
Link copied to clipboard
abstract fun getBean(name: String): Any
abstract fun <T> getBean(name: String, requiredType: Class<T>): T
Link copied to clipboard
abstract fun getBeanDefinitionCount(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getBeanNamesForAnnotation(annotationType: Class<out Annotation>): Array<String>
Link copied to clipboard
Link copied to clipboard
abstract fun <T> getBeanProvider(requiredType: Class<T>, allowEagerInit: Boolean): ObjectProvider<T>
Link copied to clipboard
abstract fun <T> getBeansOfType(type: Class<T>): Map<String, T>
Link copied to clipboard
abstract fun getBeansWithAnnotation(annotationType: Class<out Annotation>): Map<String, Any>
Link copied to clipboard
abstract fun getClassLoader(): ClassLoader
Link copied to clipboard
abstract fun getDisplayName(): String
Link copied to clipboard
Link copied to clipboard
abstract fun getId(): String
Link copied to clipboard
abstract fun getMessage(code: String, args: Array<Any>, defaultMessage: String, locale: Locale): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getResource(location: String): Resource
Link copied to clipboard
abstract fun getResources(locationPattern: String): Array<Resource>
Link copied to clipboard
Return the original source ApplicationContext.
abstract fun <T : C?> getSourceApplicationContext(requiredType: Class<T>): T
Return the original source ApplicationContext, casting it to the requested type.
Link copied to clipboard
abstract fun getStartupDate(): Long
Link copied to clipboard
Return the failure that caused application context to fail or null if the context started without issue.
Link copied to clipboard
abstract fun getType(name: String): Class<out Any>
Link copied to clipboard
abstract fun isActive(): Boolean
Link copied to clipboard
abstract fun isClosed(): Boolean
Link copied to clipboard
abstract fun isPrototype(name: String): Boolean
Link copied to clipboard
abstract fun isRunning(): Boolean
Link copied to clipboard
abstract fun isSingleton(name: String): Boolean
Link copied to clipboard
abstract fun isTypeMatch(name: String, typeToMatch: ResolvableType): Boolean
Link copied to clipboard
Link copied to clipboard
abstract fun refresh()
Link copied to clipboard
abstract fun registerShutdownHook()
Link copied to clipboard
Link copied to clipboard
abstract fun setApplicationStartup(applicationStartup: ApplicationStartup)
Link copied to clipboard
abstract fun setClassLoader(classLoader: ClassLoader)
Link copied to clipboard
abstract fun setEnvironment(environment: ConfigurableEnvironment)
Link copied to clipboard
abstract fun setId(id: String)
Link copied to clipboard
abstract fun setParent(parent: ApplicationContext)
Link copied to clipboard
abstract fun start()
Link copied to clipboard
abstract fun stop()