public class PortletApplicationContext
extends org.springframework.web.context.support.XmlWebApplicationContext
This web application context will first load bean definitions in the portalContextConfigLocation parameter in web.xml. Then, the context will load bean definitions specified by the property "spring.configs" in service.properties.
PortletContextLoaderListener| Modifier and Type | Class and Description |
|---|---|
static interface |
PortletApplicationContext.PACL |
DEFAULT_CONFIG_LOCATION, DEFAULT_CONFIG_LOCATION_PREFIX, DEFAULT_CONFIG_LOCATION_SUFFIXAPPLICATION_EVENT_MULTICASTER_BEAN_NAME, LIFECYCLE_PROCESSOR_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAMEAPPLICATION_CONTEXT_ID_PREFIX, SERVLET_CONFIG_BEAN_NAMECONTEXT_ATTRIBUTES_BEAN_NAME, CONTEXT_PARAMETERS_BEAN_NAME, ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, SCOPE_APPLICATION, SCOPE_GLOBAL_SESSION, SCOPE_REQUEST, SCOPE_SESSION, SERVLET_CONTEXT_BEAN_NAMECONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAME| Constructor and Description |
|---|
PortletApplicationContext() |
| Modifier and Type | Method and Description |
|---|---|
static ClassLoader |
getBeanClassLoader() |
protected String[] |
getDefaultConfigLocations() |
protected String[] |
getPortletConfigLocations() |
protected void |
initBeanDefinitionReader(org.springframework.beans.factory.xml.XmlBeanDefinitionReader xmlBeanDefinitionReader) |
protected void |
injectExplicitBean(Class<?> clazz,
org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry) |
protected void |
injectExplicitBeans(org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry) |
protected void |
loadBeanDefinitions(org.springframework.beans.factory.xml.XmlBeanDefinitionReader xmlBeanDefinitionReader) |
loadBeanDefinitionscreateEnvironment, getApplicationName, getConfigLocations, getNamespace, getResourceByPath, getResourcePatternResolver, getServletConfig, getServletContext, getTheme, initPropertySources, onRefresh, postProcessBeanFactory, setNamespace, setServletConfig, setServletContextafterPropertiesSet, resolvePath, setBeanName, setConfigLocation, setConfigLocations, setIdassertBeanFactoryActive, cancelRefresh, closeBeanFactory, createBeanFactory, customizeBeanFactory, getBeanFactory, hasBeanFactory, refreshBeanFactory, setAllowBeanDefinitionOverriding, setAllowCircularReferencesaddApplicationListener, addBeanFactoryPostProcessor, close, containsBean, containsBeanDefinition, containsLocalBean, destroy, destroyBeans, doClose, findAnnotationOnBean, finishBeanFactoryInitialization, finishRefresh, getAliases, getApplicationListeners, getAutowireCapableBeanFactory, getBean, getBean, getBean, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation, getDisplayName, getEnvironment, getId, getInternalParentBeanFactory, getInternalParentMessageSource, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getResources, getStartupDate, getType, initApplicationEventMulticaster, initLifecycleProcessor, initMessageSource, invokeBeanFactoryPostProcessors, isActive, isPrototype, isRunning, isSingleton, isTypeMatch, obtainFreshBeanFactory, onClose, prepareBeanFactory, prepareRefresh, publishEvent, refresh, registerBeanPostProcessors, registerListeners, registerShutdownHook, setDisplayName, setEnvironment, setParent, start, stop, toStringgetClassLoader, getResource, setClassLoaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetConfigLocation, setConfigLocationsaddApplicationListener, addBeanFactoryPostProcessor, close, getBeanFactory, getEnvironment, isActive, refresh, registerShutdownHook, setEnvironment, setId, setParentgetAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDatecontainsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotationcontainsLocalBean, getParentBeanFactorycontainsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatchgetMessage, getMessage, getMessagegetResourcespublic static ClassLoader getBeanClassLoader()
protected String[] getDefaultConfigLocations()
getDefaultConfigLocations in class org.springframework.web.context.support.XmlWebApplicationContextprotected String[] getPortletConfigLocations()
protected void initBeanDefinitionReader(org.springframework.beans.factory.xml.XmlBeanDefinitionReader xmlBeanDefinitionReader)
initBeanDefinitionReader in class org.springframework.web.context.support.XmlWebApplicationContextprotected void injectExplicitBean(Class<?> clazz, org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry)
protected void injectExplicitBeans(org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry)
protected void loadBeanDefinitions(org.springframework.beans.factory.xml.XmlBeanDefinitionReader xmlBeanDefinitionReader)
loadBeanDefinitions in class org.springframework.web.context.support.XmlWebApplicationContext