当前页面:
在线文档首页 >
Spring Framework 2.1.0 API 文档英文版
ConfigurableWebApplicationContext (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版
org.springframework.web.context
Interface ConfigurableWebApplicationContext
- All Superinterfaces:
- ApplicationContext, ApplicationEventPublisher, BeanFactory, ConfigurableApplicationContext, HierarchicalBeanFactory, Lifecycle, ListableBeanFactory, MessageSource, ResourceLoader, ResourcePatternResolver, WebApplicationContext
- All Known Implementing Classes:
- AbstractRefreshableWebApplicationContext, StaticWebApplicationContext, XmlWebApplicationContext
public interface ConfigurableWebApplicationContext
- extends WebApplicationContext, ConfigurableApplicationContext
Interface to be implemented by configurable web application contexts.
Supported by ContextLoader
and
FrameworkServlet
.
Note: The setters of this interface need to be called before an
invocation of the ConfigurableApplicationContext.refresh()
method inherited from
ConfigurableApplicationContext
.
They do not cause an initialization of the context on their own.
- Since:
- 05.12.2003
- Author:
- Juergen Hoeller
- See Also:
ConfigurableApplicationContext.refresh()
,
ContextLoader.createWebApplicationContext(javax.servlet.ServletContext, org.springframework.context.ApplicationContext)
,
FrameworkServlet.createWebApplicationContext(org.springframework.web.context.WebApplicationContext)
Field Summary |
static String |
CONFIG_LOCATION_DELIMITERS
Any number of these characters are considered delimiters between
multiple context config paths in a single String value. |
CONFIG_LOCATION_DELIMITERS
static final String CONFIG_LOCATION_DELIMITERS
- Any number of these characters are considered delimiters between
multiple context config paths in a single String value.
- See Also:
ContextLoader.CONFIG_LOCATION_PARAM
,
FrameworkServlet.setContextConfigLocation(java.lang.String)
,
Constant Field Values
setServletContext
void setServletContext(ServletContext servletContext)
- Set the ServletContext for this web application context.
Does not cause an initialization of the context: refresh needs to be
called after the setting of all configuration properties.
- See Also:
ConfigurableApplicationContext.refresh()
setServletConfig
void setServletConfig(ServletConfig servletConfig)
- Set the ServletConfig for this web application context.
Only called for a WebApplicationContext that belongs to a specific Servlet.
- See Also:
ConfigurableApplicationContext.refresh()
getServletConfig
ServletConfig getServletConfig()
- Return the ServletConfig for this web application context, if any.
setNamespace
void setNamespace(String namespace)
- Set the namespace for this web application context,
to be used for building a default context config location.
The root web application context does not have a namespace.
getNamespace
String getNamespace()
- Return the namespace for this web application context, if any.
setConfigLocations
void setConfigLocations(String[] configLocations)
- Set the config locations for this web application context.
If not set, the implementation is supposed to use a default for the
given namespace or the root web application context, as appropriate.
getConfigLocations
String[] getConfigLocations()
- Return the config locations for this web application context,
or
null
if none specified.
Copyright © 2002-2007 The Spring Framework.