インターフェース ConfigurableWebApplicationContext
- すべてのスーパーインターフェース:
ApplicationContext、ApplicationEventPublisher、AutoCloseableSE、BeanFactory、CloseableSE、ConfigurableApplicationContext、EnvironmentCapable、HierarchicalBeanFactory、Lifecycle、ListableBeanFactory、MessageSource、ResourceLoader、ResourcePatternResolver、WebApplicationContext
- すべての既知の実装クラス:
AbstractRefreshableWebApplicationContext、AnnotationConfigWebApplicationContext、GenericWebApplicationContext、GroovyWebApplicationContext、StaticWebApplicationContext、XmlWebApplicationContext
public interface ConfigurableWebApplicationContext
extends WebApplicationContext, ConfigurableApplicationContext
構成可能な Web アプリケーションコンテキストによって実装されるインターフェース。
ContextLoader および FrameworkServlet でサポートされています。 メモ: このインターフェースの setter は、ConfigurableApplicationContext から継承された ConfigurableApplicationContext.refresh() メソッドの呼び出しの前に呼び出す必要があります。独自にコンテキストを初期化することはありません。
フィールドのサマリー
フィールド修飾子と型フィールド説明static final StringSEコンテキストパスやサーブレット名を参照する ApplicationContext ID のプレフィックス。static final StringSEファクトリの ServletConfig 環境 Bean の名前。インターフェース 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.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メソッドのサマリー
修飾子と型メソッド説明StringSE[]この Web アプリケーションコンテキストの設定場所を返します。指定がない場合はnullを返します。この Web アプリケーションコンテキストのネームスペースがあれば、それを返します。この Web アプリケーションコンテキストの ServletConfig を返します(存在する場合)。voidsetConfigLocation(StringSE configLocation) この Web アプリケーションコンテキストの構成場所を init-param スタイルで設定します。voidsetConfigLocations(StringSE... configLocations) この Web アプリケーションコンテキストの構成場所を設定します。voidsetNamespace(StringSE namespace) この Web アプリケーションコンテキストのネームスペースを設定して、デフォルトのコンテキスト設定場所の構築に使用します。voidsetServletConfig(ServletConfigEE servletConfig) この Web アプリケーションコンテキストの ServletConfig を設定します。voidsetServletContext(ServletContextEE servletContext) この Web アプリケーションコンテキストの ServletContext を設定します。インターフェース org.springframework.context.ApplicationContext から継承されたメソッド
getApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDateインターフェース 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.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
フィールドの詳細
APPLICATION_CONTEXT_ID_PREFIX
コンテキストパスやサーブレット名を参照する ApplicationContext ID のプレフィックス。SERVLET_CONFIG_BEAN_NAME
ファクトリの ServletConfig 環境 Bean の名前。- 関連事項:
メソッドの詳細
setServletContext
この Web アプリケーションコンテキストの ServletContext を設定します。コンテキストの初期化は行われません。すべての構成プロパティを設定した後で、リフレッシュを呼び出す必要があります。
setServletConfig
この Web アプリケーションコンテキストの ServletConfig を設定します。特定のサーブレットに属する WebApplicationContext に対してのみ呼び出されます。getServletConfig
この Web アプリケーションコンテキストの ServletConfig を返します(存在する場合)。setNamespace
この Web アプリケーションコンテキストのネームスペースを設定して、デフォルトのコンテキスト設定場所の構築に使用します。ルート Web アプリケーションコンテキストには名前空間がありません。getNamespace
この Web アプリケーションコンテキストのネームスペースがあれば、それを返します。setConfigLocation
この Web アプリケーションコンテキストの構成場所を init-param スタイルで設定します。つまり、コンマ、セミコロン、空白で区切られた個別の場所を使用します。設定されていない場合、実装は、必要に応じて、指定された名前空間またはルート Web アプリケーションコンテキストのデフォルトを使用することになっています。
setConfigLocations
この Web アプリケーションコンテキストの構成場所を設定します。設定されていない場合、実装は、必要に応じて、指定された名前空間またはルート Web アプリケーションコンテキストのデフォルトを使用することになっています。
getConfigLocations
この Web アプリケーションコンテキストの設定場所を返します。指定がない場合はnullを返します。