org.springframework.web.portlet.context |
Support for Spring's application context concept in a portlet environment,
including ApplicationContext implementations and various utility classes.
|
Java Source File Name | Type | Comment |
AbstractRefreshablePortletApplicationContext.java | Class | org.springframework.context.support.AbstractRefreshableApplicationContext subclass which implements the
ConfigurablePortletApplicationContext interface for portlet environments. |
ConfigurablePortletApplicationContext.java | Interface | Interface to be implemented by configurable portlet application contexts.
Supported by
org.springframework.web.portlet.FrameworkPortlet .
Note: The setters of this interface need to be called before an
invocation of the
ConfigurablePortletApplicationContext.refresh method inherited from
org.springframework.context.ConfigurableApplicationContext .
They do not cause an initialization of the context on their own.
author: Juergen Hoeller author: William G. |
PortletApplicationContextUtils.java | Class | Convenience methods to retrieve the root WebApplicationContext for a given
PortletContext. |
PortletApplicationObjectSupport.java | Class | Convenient superclass for application objects running in a Portlet ApplicationContext. |
PortletConfigAware.java | Interface | Interface to be implemented by any object that wishes to be notified
of the PortletConfig (typically determined by the PortletApplicationContext)
that it runs in. |
PortletContextAware.java | Interface | Interface to be implemented by any object that wishes to be notified
of the PortletContext (typically determined by the PortletApplicationContext)
that it runs in.
author: Juergen Hoeller author: William G. |
PortletContextAwareProcessor.java | Class | org.springframework.beans.factory.config.BeanPostProcessor implementation that passes the PortletContext to beans that implement
the
PortletContextAware interface.
Portlet application contexts will automatically register this with their
underlying bean factory. |
PortletContextResource.java | Class | Resource implementation for PortletContext resources,
interpreting relative paths within the portlet application root.
Always supports stream access, but only allows java.io.File
access when the portlet application archive is expanded.
Always supports resolution as URL.
author: Juergen Hoeller author: John A. |
PortletContextResourceLoader.java | Class | ResourceLoader implementation that resolves paths as PortletContext
resources, for use outside a Portlet ApplicationContext (for example,
in a GenericPortletBean subclass).
Within a WebApplicationContext, resource paths are automatically
resolved as PortletContext resources by the context implementation.
author: Juergen Hoeller author: John A. |
PortletContextResourcePatternResolver.java | Class | PortletContext-aware subclass of PathMatchingResourcePatternResolver,
able to find matching resources below the web application root directory
via Portlet API's PortletContext.getResourcePaths .
Falls back to the superclass' file system checking for other resources.
The advantage of using PortletContext.getResourcePaths to
find matching files is that it will work in a WAR file which has not been
expanded too.
author: Juergen Hoeller author: John A. |
PortletRequestAttributes.java | Class | Portlet-based implementation of the
org.springframework.web.context.request.RequestAttributes interface. |
PortletRequestHandledEvent.java | Class | Portlet-specific subclass of RequestHandledEvent,
adding portlet-specific context information.
author: Juergen Hoeller author: John A. |
PortletWebRequest.java | Class | org.springframework.web.context.request.WebRequest adapter
for a
javax.portlet.PortletRequest . |
StaticPortletApplicationContext.java | Class | Static Portlet-based 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. |
XmlPortletApplicationContext.java | Class | Portlet-based
org.springframework.web.context.WebApplicationContext implementation which takes its configuration from XML documents, understood
by an
org.springframework.beans.factory.xml.XmlBeanDefinitionReader .
This is essentially the equivalent of
org.springframework.context.support.AbstractXmlApplicationContext for a portlet environment.
By default, the configuration will be taken from "/WEB-INF/applicationContext.xml"
for the root context, and "/WEB-INF/test-portlet.xml" for a context with the namespace
"test-portlet" (like for a DispatcherPortlet instance with the portlet-name "test").
The config location defaults can be overridden via the "contextConfigLocation"
portlet init-param of
org.springframework.web.portlet.FrameworkPortlet .
Config locations can either denote concrete files like "/WEB-INF/context.xml"
or Ant-style patterns like "/WEB-INF/*-context.xml" (see
org.springframework.util.PathMatcher javadoc for pattern details).
Note: In case of multiple config locations, later bean definitions will
override ones defined in earlier loaded files. |