| java.lang.Object | |
| ↳ | org.springframework.web.portlet.context.PortletApplicationContextUtils |
Convenience methods for retrieving the root WebApplicationContext for a given PortletContext. This is e.g. useful for accessing a Spring context from within custom Portlet implementations.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Find the root WebApplicationContext for this portlet application, which is
typically loaded via ContextLoaderListener or ContextLoaderServlet.
| |||||||||||
Find the root WebApplicationContext for this portlet application, which is
typically loaded via ContextLoaderListener or ContextLoaderServlet.
| |||||||||||
Replace
Servlet- and Portlet-based stub property sources
with actual instances populated with the given context and config objects. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Find the root WebApplicationContext for this portlet application, which is typically loaded via ContextLoaderListener or ContextLoaderServlet.
Will rethrow an exception that happened on root context startup, to differentiate between a failed context startup and no context at all.
| pc | PortletContext to find the web application context for |
|---|
| IllegalStateException | if the root WebApplicationContext could not be found |
|---|
Find the root WebApplicationContext for this portlet application, which is typically loaded via ContextLoaderListener or ContextLoaderServlet.
Will rethrow an exception that happened on root context startup, to differentiate between a failed context startup and no context at all.
| pc | PortletContext to find the web application context for |
|---|
null if none
(typed to ApplicationContext to avoid a Servlet API dependency; can usually
be casted to WebApplicationContext, but there shouldn't be a need to)Replace Servlet- and Portlet-based stub property sources
with actual instances populated with the given context and config objects.