public interface ConfigurableWebApplicationContext extends WebApplicationContext, ConfigurableApplicationContext
ContextLoader および FrameworkServlet でサポートされています。 メモ: このインターフェースの setter は、ConfigurableApplicationContext から継承された ConfigurableApplicationContext.refresh() メソッドの呼び出しの前に呼び出す必要があります。独自にコンテキストを初期化することはありません。
| 修飾子と型 | フィールドと説明 |
|---|---|
static StringSE | APPLICATION_CONTEXT_ID_PREFIX コンテキストパスやサーブレット名を参照する ApplicationContext ID のプレフィックス。 |
static StringSE | SERVLET_CONFIG_BEAN_NAME ファクトリの ServletConfig 環境 Bean の名前。 |
CONTEXT_ATTRIBUTES_BEAN_NAME, CONTEXT_PARAMETERS_BEAN_NAME, ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, SCOPE_APPLICATION, SCOPE_REQUEST, SCOPE_SESSION, SERVLET_CONTEXT_BEAN_NAMEAPPLICATION_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_NAMEFACTORY_BEAN_PREFIXCLASSPATH_ALL_URL_PREFIXCLASSPATH_URL_PREFIX| 修飾子と型 | メソッドと説明 |
|---|---|
StringSE[] | getConfigLocations() この Web アプリケーションコンテキストの設定場所を返します。指定がない場合は null を返します。 |
StringSE | getNamespace() この Web アプリケーションコンテキストのネームスペースがあれば、それを返します。 |
ServletConfigEE | getServletConfig() この Web アプリケーションコンテキストの ServletConfig を返します(存在する場合)。 |
void | setConfigLocation(StringSE configLocation) この Web アプリケーションコンテキストの構成場所を init-param スタイルで設定します。 |
void | setConfigLocations(StringSE... configLocations) この Web アプリケーションコンテキストの構成場所を設定します。 |
void | setNamespace(StringSE namespace) この Web アプリケーションコンテキストのネームスペースを設定して、デフォルトのコンテキスト設定場所の構築に使用します。 |
void | setServletConfig(ServletConfigEE servletConfig) この Web アプリケーションコンテキストの ServletConfig を設定します。 |
void | setServletContext(ServletContextEE servletContext) この Web アプリケーションコンテキストの ServletContext を設定します。 |
getServletContextaddApplicationListener, addBeanFactoryPostProcessor, addProtocolResolver, close, getApplicationStartup, getBeanFactory, getEnvironment, isActive, refresh, registerShutdownHook, setApplicationStartup, setClassLoader, setEnvironment, setId, setParentgetApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDatecontainsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanProvider, getBeanProvider, getBeansOfType, getBeansOfType, getBeansWithAnnotationcontainsLocalBean, getParentBeanFactorycontainsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getBeanProvider, getBeanProvider, getType, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatchgetMessage, getMessage, getMessagepublishEvent, publishEventgetResourcesgetClassLoader, getResourcestatic final StringSE APPLICATION_CONTEXT_ID_PREFIX
static final StringSE SERVLET_CONFIG_BEAN_NAME
ServletConfigEE, 定数フィールド値 void setServletContext(@Nullable ServletContextEE servletContext)
コンテキストの初期化は行われません。すべての構成プロパティを設定した後で、リフレッシュを呼び出す必要があります。
void setServletConfig(@Nullable ServletConfigEE servletConfig)
@Nullable ServletConfigEE getServletConfig()
void setNamespace(@Nullable StringSE namespace)
void setConfigLocation(StringSE configLocation)
設定されていない場合、実装は、必要に応じて、指定された名前空間またはルート Web アプリケーションコンテキストのデフォルトを使用することになっています。
void setConfigLocations(StringSE... configLocations)
設定されていない場合、実装は、必要に応じて、指定された名前空間またはルート Web アプリケーションコンテキストのデフォルトを使用することになっています。