接口 ConfigurablePortletApplicationContext
- 所有超级接口:
ApplicationContext
,ApplicationEventPublisher
,AutoCloseable
,BeanFactory
,Closeable
,ConfigurableApplicationContext
,EnvironmentCapable
,HierarchicalBeanFactory
,Lifecycle
,ListableBeanFactory
,MessageSource
,ResourceLoader
,ResourcePatternResolver
,WebApplicationContext
- 所有已知实现类:
AbstractRefreshablePortletApplicationContext
,StaticPortletApplicationContext
,XmlPortletApplicationContext
public interface ConfigurablePortletApplicationContext extends WebApplicationContext, ConfigurableApplicationContext
Interface to be implemented by configurable portlet application contexts. Supported byFrameworkPortlet
.Note: The setters of this interface need to be called before an invocation of the
ConfigurableApplicationContext.refresh()
method inherited fromConfigurableApplicationContext
. They do not cause an initialization of the context on their own.- 从以下版本开始:
- 2.0
- 作者:
- Juergen Hoeller, William G. Thompson, Jr., John A. Lewis
- 另请参阅:
ConfigurableApplicationContext.refresh()
,ContextLoader.createWebApplicationContext(javax.servlet.ServletContext)
,FrameworkPortlet.createPortletApplicationContext(org.springframework.context.ApplicationContext)
,ConfigurableWebApplicationContext
字段概要
字段 修饰符和类型 字段 说明 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.从接口继承的字段 org.springframework.beans.factory.BeanFactory
FACTORY_BEAN_PREFIX
从接口继承的字段 org.springframework.context.ConfigurableApplicationContext
CONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAME
从接口继承的字段 org.springframework.core.io.ResourceLoader
CLASSPATH_URL_PREFIX
从接口继承的字段 org.springframework.core.io.support.ResourcePatternResolver
CLASSPATH_ALL_URL_PREFIX
从接口继承的字段 org.springframework.web.context.WebApplicationContext
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
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 String[]
getConfigLocations()
Return the config locations for this web application context, ornull
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. 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(PortletConfig portletConfig)
Set the PortletConfig for this portlet application context.void
setPortletContext(PortletContext portletContext)
Set the PortletContext for this portlet application context.从接口继承的方法 org.springframework.context.ApplicationContext
getApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDate
从接口继承的方法 org.springframework.context.ApplicationEventPublisher
publishEvent, publishEvent
从接口继承的方法 org.springframework.beans.factory.BeanFactory
containsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatch
从接口继承的方法 org.springframework.context.ConfigurableApplicationContext
addApplicationListener, addBeanFactoryPostProcessor, addProtocolResolver, close, getBeanFactory, getEnvironment, isActive, refresh, registerShutdownHook, setEnvironment, setId, setParent
从接口继承的方法 org.springframework.beans.factory.HierarchicalBeanFactory
containsLocalBean, getParentBeanFactory
从接口继承的方法 org.springframework.beans.factory.ListableBeanFactory
containsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation
从接口继承的方法 org.springframework.context.MessageSource
getMessage, getMessage, getMessage
从接口继承的方法 org.springframework.core.io.ResourceLoader
getClassLoader, getResource
从接口继承的方法 org.springframework.core.io.support.ResourcePatternResolver
getResources
从接口继承的方法 org.springframework.web.context.WebApplicationContext
getServletContext
字段详细资料
APPLICATION_CONTEXT_ID_PREFIX
static final String APPLICATION_CONTEXT_ID_PREFIX
Prefix for ApplicationContext ids that refer to portlet name.
PORTLET_CONTEXT_BEAN_NAME
static final String PORTLET_CONTEXT_BEAN_NAME
Name of the PortletContext environment bean in the factory.- 另请参阅:
PortletContext
, 常量字段值
PORTLET_CONFIG_BEAN_NAME
static final String PORTLET_CONFIG_BEAN_NAME
Name of the PortletConfig environment bean in the factory.- 另请参阅:
PortletConfig
, 常量字段值
方法详细资料
setPortletContext
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.
getPortletContext
PortletContext getPortletContext()
Return the standard Portlet API PortletContext for this application.
setPortletConfig
void setPortletConfig(PortletConfig portletConfig)
Set the PortletConfig for this portlet application context.
getPortletConfig
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, ornull
if none specified.