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_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
FACTORY_BEAN_PREFIX
CLASSPATH_ALL_URL_PREFIX
CLASSPATH_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 を設定します。 |
getServletContext
addApplicationListener, addBeanFactoryPostProcessor, addProtocolResolver, close, getBeanFactory, getEnvironment, isActive, refresh, registerShutdownHook, setClassLoader, setEnvironment, setId, setParent
getApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDate
containsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation
containsLocalBean, getParentBeanFactory
containsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getBeanProvider, getBeanProvider, getType, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatch
getMessage, getMessage, getMessage
publishEvent, publishEvent
getResources
getClassLoader, getResource
static final StringSE APPLICATION_CONTEXT_ID_PREFIX
static final StringSE SERVLET_CONFIG_BEAN_NAME
ServletConfig
EE, 定数フィールド値 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 アプリケーションコンテキストのデフォルトを使用することになっています。