org.springframework.web.portlet.context
Interface ConfigurablePortletApplicationContext
- All Superinterfaces:
- ApplicationContext, ApplicationEventPublisher, BeanFactory, ConfigurableApplicationContext, HierarchicalBeanFactory, Lifecycle, ListableBeanFactory, MessageSource, ResourceLoader, ResourcePatternResolver, WebApplicationContext
- All Known Implementing Classes:
- AbstractRefreshablePortletApplicationContext, StaticPortletApplicationContext, XmlPortletApplicationContext
public interface ConfigurablePortletApplicationContext
- extends WebApplicationContext, ConfigurableApplicationContext
Interface to be implemented by configurable portlet application contexts.
Supported by FrameworkPortlet
.
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:
- 2.0
- Author:
- Juergen Hoeller, William G. Thompson, Jr., John A. Lewis
- See Also:
ConfigurableApplicationContext.refresh()
,
ContextLoader.createWebApplicationContext(javax.servlet.ServletContext, org.springframework.context.ApplicationContext)
,
FrameworkPortlet.createPortletApplicationContext(org.springframework.context.ApplicationContext)
,
ConfigurableWebApplicationContext
Method Summary |
String[] |
getConfigLocations()
Return the config locations for this web application context,
or null if none specified. |
String |
getNamespace()
Return the namespace for this web application context, if any. |
javax.portlet.PortletConfig |
getPortletConfig()
Return the PortletConfig for this portlet application context, if any. |
javax.portlet.PortletContext |
getPortletContext()
Return the standard Portlet API PortletContext for this application. |
void |
setConfigLocation(String configLocation)
Set the config locations for this portlet application context in init-param style,
i.e. with distinct locations separated by commas, semicolons or whitespace. |
void |
setConfigLocations(String[] configLocations)
Set the config locations for this portlet application context. |
void |
setNamespace(String namespace)
Set the namespace for this portlet application context,
to be used for building a default context config location. |
void |
setPortletConfig(javax.portlet.PortletConfig portletConfig)
Set the PortletConfig for this portlet application context. |
void |
setPortletContext(javax.portlet.PortletContext portletContext)
Set the PortletContext for this portlet application context. |
setPortletContext
void setPortletContext(javax.portlet.PortletContext portletContext)
- Set the PortletContext for this portlet 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()
getPortletContext
javax.portlet.PortletContext getPortletContext()
- Return the standard Portlet API PortletContext for this application.
setPortletConfig
void setPortletConfig(javax.portlet.PortletConfig portletConfig)
- Set the PortletConfig for this portlet application context.
- See Also:
ConfigurableApplicationContext.refresh()
getPortletConfig
javax.portlet.PortletConfig getPortletConfig()
- Return the PortletConfig for this portlet application context, if any.
setNamespace
void setNamespace(String namespace)
- Set the namespace for this portlet application context,
to be used for building a default context config location.
getNamespace
String getNamespace()
- Return the namespace for this web application context, if any.
setConfigLocation
void setConfigLocation(String configLocation)
- Set the config locations for this portlet application context in init-param style,
i.e. with distinct locations separated by commas, semicolons or whitespace.
If not set, the implementation is supposed to use a default for the
given namespace.
setConfigLocations
void setConfigLocations(String[] configLocations)
- Set the config locations for this portlet application context.
If not set, the implementation is supposed to use a default for the
given namespace.
getConfigLocations
String[] getConfigLocations()
- Return the config locations for this web application context,
or
null
if none specified.
Copyright © 2002-2008 The Spring Framework.