public interface

ConfigurablePortletApplicationContext

implements ConfigurableApplicationContext WebApplicationContext
org.springframework.web.portlet.context.ConfigurablePortletApplicationContext
Known Indirect Subclasses

Class Overview

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 refresh() method inherited from ConfigurableApplicationContext. They do not cause an initialization of the context on their own.

Summary

Constants
String PORTLET_CONFIG_BEAN_NAME Name of the PortletConfig environment bean in the factory.
String PORTLET_CONTEXT_BEAN_NAME Name of the PortletContext environment bean in the factory.
[Expand]
Inherited Constants
From interface org.springframework.beans.factory.BeanFactory
From interface org.springframework.context.ConfigurableApplicationContext
From interface org.springframework.core.io.ResourceLoader
From interface org.springframework.core.io.support.ResourcePatternResolver
From interface org.springframework.web.context.WebApplicationContext
Fields
public static final String APPLICATION_CONTEXT_ID_PREFIX Prefix for ApplicationContext ids that refer to portlet name.
[Expand]
Inherited Fields
From interface org.springframework.web.context.WebApplicationContext
Public Methods
abstract String[] getConfigLocations()
Return the config locations for this web application context, or null if none specified.
abstract String getNamespace()
Return the namespace for this web application context, if any.
abstract PortletConfig getPortletConfig()
Return the PortletConfig for this portlet application context, if any.
abstract PortletContext getPortletContext()
Return the standard Portlet API PortletContext for this application.
abstract void setConfigLocation(String configLocation)
Set the config locations for this portlet application context in init-param style, i.e.
abstract void setConfigLocations(String[] configLocations)
Set the config locations for this portlet application context.
abstract void setNamespace(String namespace)
Set the namespace for this portlet application context, to be used for building a default context config location.
abstract void setPortletConfig(PortletConfig portletConfig)
Set the PortletConfig for this portlet application context.
abstract void setPortletContext(PortletContext portletContext)
Set the PortletContext for this portlet application context.
[Expand]
Inherited Methods
From interface org.springframework.beans.factory.BeanFactory
From interface org.springframework.beans.factory.HierarchicalBeanFactory
From interface org.springframework.beans.factory.ListableBeanFactory
From interface org.springframework.context.ApplicationContext
From interface org.springframework.context.ApplicationEventPublisher
From interface org.springframework.context.ConfigurableApplicationContext
From interface org.springframework.context.Lifecycle
From interface org.springframework.context.MessageSource
From interface org.springframework.core.env.EnvironmentCapable
From interface org.springframework.core.io.ResourceLoader
From interface org.springframework.core.io.support.ResourcePatternResolver
From interface org.springframework.web.context.WebApplicationContext

Constants

public static final String PORTLET_CONFIG_BEAN_NAME

Name of the PortletConfig environment bean in the factory.

See Also
  • javax.portlet.PortletConfig
Constant Value: "portletConfig"

public static final String PORTLET_CONTEXT_BEAN_NAME

Name of the PortletContext environment bean in the factory.

See Also
  • javax.portlet.PortletContext
Constant Value: "portletContext"

Fields

public static final String APPLICATION_CONTEXT_ID_PREFIX

Prefix for ApplicationContext ids that refer to portlet name.

Public Methods

public abstract String[] getConfigLocations ()

Return the config locations for this web application context, or null if none specified.

public abstract String getNamespace ()

Return the namespace for this web application context, if any.

public abstract PortletConfig getPortletConfig ()

Return the PortletConfig for this portlet application context, if any.

public abstract PortletContext getPortletContext ()

Return the standard Portlet API PortletContext for this application.

public abstract 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.

public abstract 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.

public abstract void setNamespace (String namespace)

Set the namespace for this portlet application context, to be used for building a default context config location.

public abstract void setPortletConfig (PortletConfig portletConfig)

Set the PortletConfig for this portlet application context.

See Also

public abstract void setPortletContext (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