Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » web » portlet » context » [javadoc | source]
org.springframework.web.portlet.context
public class: StaticPortletApplicationContext [javadoc | source]
java.lang.Object
   org.springframework.core.io.DefaultResourceLoader
      org.springframework.context.support.AbstractApplicationContext
         org.springframework.context.support.GenericApplicationContext
            org.springframework.context.support.StaticApplicationContext
               org.springframework.web.portlet.context.StaticPortletApplicationContext

All Implemented Interfaces:
    ConfigurablePortletApplicationContext, BeanDefinitionRegistry, ConfigurableApplicationContext, DisposableBean, ResourceLoader

Static Portlet-based org.springframework.context.ApplicationContext implementation for testing. Not intended for use in production applications.

Implements the org.springframework.web.portlet.context.ConfigurablePortletApplicationContext interface to allow for direct replacement of an XmlPortletApplicationContext , despite not actually supporting external configuration files.

Interprets resource paths as portlet context resources, that is, as paths beneath the portlet application root. Absolute paths, for example for files outside the portlet app root, can be accessed via "file:" URLs, as implemented by org.springframework.core.io.DefaultResourceLoader .

Fields inherited from org.springframework.context.support.AbstractApplicationContext:
MESSAGE_SOURCE_BEAN_NAME,  APPLICATION_EVENT_MULTICASTER_BEAN_NAME,  logger
Constructor:
 public StaticPortletApplicationContext() 
Method from org.springframework.web.portlet.context.StaticPortletApplicationContext Summary:
getConfigLocations,   getNamespace,   getPortletConfig,   getPortletContext,   getResourceByPath,   getResourcePatternResolver,   getServletContext,   postProcessBeanFactory,   setConfigLocation,   setConfigLocations,   setNamespace,   setParent,   setPortletConfig,   setPortletContext
Methods from org.springframework.context.support.StaticApplicationContext:
addMessage,   getStaticMessageSource,   registerPrototype,   registerPrototype,   registerSingleton,   registerSingleton
Methods from org.springframework.context.support.GenericApplicationContext:
closeBeanFactory,   getBeanDefinition,   getBeanFactory,   getDefaultListableBeanFactory,   getResource,   getResources,   isAlias,   isBeanNameInUse,   refreshBeanFactory,   registerAlias,   registerBeanDefinition,   removeAlias,   removeBeanDefinition,   setParent,   setResourceLoader
Methods from org.springframework.context.support.AbstractApplicationContext:
addApplicationListener,   addBeanFactoryPostProcessor,   addListener,   cancelRefresh,   close,   closeBeanFactory,   containsBean,   containsBeanDefinition,   containsLocalBean,   destroy,   destroyBeans,   doClose,   finishBeanFactoryInitialization,   finishRefresh,   getAliases,   getApplicationListeners,   getAutowireCapableBeanFactory,   getBean,   getBean,   getBean,   getBeanDefinitionCount,   getBeanDefinitionNames,   getBeanFactory,   getBeanFactoryPostProcessors,   getBeanNamesForType,   getBeanNamesForType,   getBeansOfType,   getBeansOfType,   getDisplayName,   getId,   getInternalParentBeanFactory,   getInternalParentMessageSource,   getMessage,   getMessage,   getMessage,   getParent,   getParentBeanFactory,   getResourcePatternResolver,   getResources,   getStartupDate,   getType,   initApplicationEventMulticaster,   initMessageSource,   invokeBeanFactoryPostProcessors,   isActive,   isPrototype,   isRunning,   isSingleton,   isTypeMatch,   obtainFreshBeanFactory,   onClose,   onRefresh,   postProcessBeanFactory,   prepareBeanFactory,   prepareRefresh,   publishEvent,   refresh,   refreshBeanFactory,   registerBeanPostProcessors,   registerListeners,   registerShutdownHook,   setDisplayName,   setId,   setParent,   start,   stop,   toString
Methods from org.springframework.core.io.DefaultResourceLoader:
getClassLoader,   getResource,   getResourceByPath,   setClassLoader
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.web.portlet.context.StaticPortletApplicationContext Detail:
 public String[] getConfigLocations() 
 public String getNamespace() 
 public PortletConfig getPortletConfig() 
 public PortletContext getPortletContext() 
 protected Resource getResourceByPath(String path) 
    This implementation supports file paths beneath the root of the PortletContext.
 protected ResourcePatternResolver getResourcePatternResolver() 
    This implementation supports pattern matching in unexpanded WARs too.
 public ServletContext getServletContext() 
 protected  void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) 
 public  void setConfigLocation(String configLocation) 
 public  void setConfigLocations(String[] configLocations) 
 public  void setNamespace(String namespace) 
 public  void setParent(ApplicationContext parent) 
 public  void setPortletConfig(PortletConfig portletConfig) 
 public  void setPortletContext(PortletContext portletContext)