インターフェース AssertableWebApplicationContext
- すべてのスーパーインターフェース:
ApplicationContext、ApplicationContextAssertProvider<ConfigurableWebApplicationContext>、ApplicationEventPublisher、org.assertj.core.api.AssertProvider<ApplicationContextAssert<ConfigurableWebApplicationContext>>、AutoCloseableSE、BeanFactory、CloseableSE、ConfigurableApplicationContext、ConfigurableWebApplicationContext、EnvironmentCapable、HierarchicalBeanFactory、Lifecycle、ListableBeanFactory、MessageSource、ResourceLoader、ResourcePatternResolver、WebApplicationContext
public interface AssertableWebApplicationContext
extends ApplicationContextAssertProvider<ConfigurableWebApplicationContext>, ConfigurableWebApplicationContext
AssertJ スタイルのアサーションを追加でサポートする
WebApplicationContext。既存のサーブレット Web アプリケーションコンテキストまたは起動に失敗したアプリケーションコンテキストを装飾するために使用できます。 詳細については、ApplicationContextAssertProvider を参照してください。
- 導入:
- 2.0.0
- 作成者:
- Phillip Webb
- 関連事項:
フィールドのサマリー
インターフェース org.springframework.beans.factory.BeanFactory から継承されたフィールド
FACTORY_BEAN_PREFIXインターフェース org.springframework.context.ConfigurableApplicationContext から継承されたフィールド
APPLICATION_STARTUP_BEAN_NAME, CONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SHUTDOWN_HOOK_THREAD_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAMEインターフェース org.springframework.web.context.ConfigurableWebApplicationContext から継承されたフィールド
APPLICATION_CONTEXT_ID_PREFIX, SERVLET_CONFIG_BEAN_NAMEインターフェース org.springframework.core.io.ResourceLoader から継承されたフィールド
CLASSPATH_URL_PREFIXインターフェース org.springframework.core.io.support.ResourcePatternResolver から継承されたフィールド
CLASSPATH_ALL_URL_PREFIXインターフェース org.springframework.web.context.WebApplicationContext から継承されたフィールド
CONTEXT_ATTRIBUTES_BEAN_NAME, CONTEXT_PARAMETERS_BEAN_NAME, ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, SCOPE_APPLICATION, SCOPE_REQUEST, SCOPE_SESSION, SERVLET_CONTEXT_BEAN_NAMEメソッドのサマリー
静的メソッド修飾子と型メソッド説明get(SupplierSE<? extends ConfigurableWebApplicationContext> contextSupplier) 新しいAssertableWebApplicationContextインスタンスを作成するファクトリメソッド。インターフェース org.springframework.context.ApplicationContext から継承されたメソッド
getApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDateインターフェース org.springframework.boot.test.context.assertj.ApplicationContextAssertProvider から継承されたメソッド
assertThat, close, getSourceApplicationContext, getSourceApplicationContext, getStartupFailureインターフェース org.springframework.context.ApplicationEventPublisher から継承されたメソッド
publishEvent, publishEventインターフェース org.springframework.beans.factory.BeanFactory から継承されたメソッド
containsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getBeanProvider, getBeanProvider, getType, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatchインターフェース org.springframework.context.ConfigurableApplicationContext から継承されたメソッド
addApplicationListener, addBeanFactoryPostProcessor, addProtocolResolver, close, getApplicationStartup, getBeanFactory, getEnvironment, isActive, refresh, registerShutdownHook, removeApplicationListener, setApplicationStartup, setClassLoader, setEnvironment, setId, setParentインターフェース org.springframework.web.context.ConfigurableWebApplicationContext から継承されたメソッド
getConfigLocations, getNamespace, getServletConfig, setConfigLocation, setConfigLocations, setNamespace, setServletConfig, setServletContextインターフェース org.springframework.beans.factory.HierarchicalBeanFactory から継承されたメソッド
containsLocalBean, getParentBeanFactoryインターフェース org.springframework.beans.factory.ListableBeanFactory から継承されたメソッド
containsBeanDefinition, findAllAnnotationsOnBean, findAnnotationOnBean, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanProvider, getBeanProvider, getBeansOfType, getBeansOfType, getBeansWithAnnotationインターフェース org.springframework.context.MessageSource から継承されたメソッド
getMessage, getMessage, getMessageインターフェース org.springframework.core.io.ResourceLoader から継承されたメソッド
getClassLoader, getResourceインターフェース org.springframework.core.io.support.ResourcePatternResolver から継承されたメソッド
getResourcesインターフェース org.springframework.web.context.WebApplicationContext から継承されたメソッド
getServletContext
メソッドの詳細
get
static AssertableWebApplicationContext get(SupplierSE<? extends ConfigurableWebApplicationContext> contextSupplier) 新しいAssertableWebApplicationContextインスタンスを作成するファクトリメソッド。- パラメーター:
contextSupplier- 完全に構成されたConfigurableWebApplicationContextを返すか、コンテキストの開始に失敗した場合に例外をスローするサプライヤー。- 戻り値:
AssertableWebApplicationContextインスタンス