org.springframework.web.context
Interface ConfigurableWebApplicationContext
- All Superinterfaces:
- ApplicationContext, BeanFactory, ConfigurableApplicationContext, HierarchicalBeanFactory, ListableBeanFactory, MessageSource, ResourceLoader, ThemeSource, WebApplicationContext
- All Known Implementing Classes:
- StaticWebApplicationContext, XmlWebApplicationContext
- public interface ConfigurableWebApplicationContext
- extends WebApplicationContext, ConfigurableApplicationContext
Interface to be implemented by configurable web application contexts.
Expected by ContextLoader and FrameworkServlet.
Note: The setters of this interface need to be called before an invocation
of the 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 java.lang.String |
CONFIG_LOCATION_DELIMITERS
Any number of these characters are considered delimiters
between multiple context paths in a single-String config location. |
Method Summary |
void |
setConfigLocations(java.lang.String[] configLocations)
Set the config locations for this web application context. |
void |
setNamespace(java.lang.String namespace)
Set the namespace for this web application context,
to be used for building a default context config location. |
void |
setServletContext(javax.servlet.ServletContext servletContext)
Set the ServletContext for this web application context. |
CONFIG_LOCATION_DELIMITERS
public static final java.lang.String CONFIG_LOCATION_DELIMITERS
- Any number of these characters are considered delimiters
between multiple context paths in a single-String config location.
- See Also:
ContextLoader.CONFIG_LOCATION_PARAM
,
FrameworkServlet.setContextConfigLocation(java.lang.String)
,
Constant Field Values
setServletContext
public void setServletContext(javax.servlet.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()
setNamespace
public void setNamespace(java.lang.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.
setConfigLocations
public void setConfigLocations(java.lang.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 respectively the root web application context.
Copyright (C) 2003-2004 The Spring Framework Project.