public interface ConfigurablePortletApplicationContext extends WebApplicationContext, ConfigurableApplicationContext
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.
ConfigurableApplicationContext.refresh()
,
ContextLoader.createWebApplicationContext(javax.servlet.ServletContext)
,
FrameworkPortlet.createPortletApplicationContext(org.springframework.context.ApplicationContext)
,
ConfigurableWebApplicationContext
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_CONTEXT_ID_PREFIX
Prefix for ApplicationContext ids that refer to portlet name.
|
static String |
PORTLET_CONFIG_BEAN_NAME
Name of the PortletConfig environment bean in the factory.
|
static String |
PORTLET_CONTEXT_BEAN_NAME
Name of the PortletContext environment bean in the factory.
|
CONTEXT_ATTRIBUTES_BEAN_NAME, CONTEXT_PARAMETERS_BEAN_NAME, ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, SCOPE_APPLICATION, SCOPE_GLOBAL_SESSION, SCOPE_REQUEST, SCOPE_SESSION, SERVLET_CONTEXT_BEAN_NAME
CONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAME
FACTORY_BEAN_PREFIX
CLASSPATH_ALL_URL_PREFIX
CLASSPATH_URL_PREFIX
Modifier and Type | Method and Description |
---|---|
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.
|
PortletConfig |
getPortletConfig()
Return the PortletConfig for this portlet application context, if any.
|
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.
|
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(PortletConfig portletConfig)
Set the PortletConfig for this portlet application context.
|
void |
setPortletContext(PortletContext portletContext)
Set the PortletContext for this portlet application context.
|
getServletContext
addApplicationListener, addBeanFactoryPostProcessor, close, getBeanFactory, getEnvironment, isActive, refresh, registerShutdownHook, setEnvironment, setId, setParent
getApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDate
containsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation
containsLocalBean, getParentBeanFactory
containsBean, getAliases, getBean, getBean, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatch
getMessage, getMessage, getMessage
publishEvent
getResources
getClassLoader, getResource
static final String APPLICATION_CONTEXT_ID_PREFIX
static final String PORTLET_CONTEXT_BEAN_NAME
PortletContext
,
Constant Field Valuesstatic final String PORTLET_CONFIG_BEAN_NAME
PortletConfig
,
Constant Field Valuesvoid setPortletContext(PortletContext portletContext)
Does not cause an initialization of the context: refresh needs to be called after the setting of all configuration properties.
PortletContext getPortletContext()
void setPortletConfig(PortletConfig portletConfig)
PortletConfig getPortletConfig()
void setNamespace(String namespace)
String getNamespace()
void setConfigLocation(String configLocation)
If not set, the implementation is supposed to use a default for the given namespace.
void setConfigLocations(String[] configLocations)
If not set, the implementation is supposed to use a default for the given namespace.
String[] getConfigLocations()
null
if none specified.