public class PortletContextResourceLoader extends DefaultResourceLoader
Within a WebApplicationContext, resource paths are automatically resolved as PortletContext resources by the context implementation.
getResourceByPath(java.lang.String),
PortletContextResource,
GenericPortletBeanDefaultResourceLoader.ClassPathContextResourceCLASSPATH_URL_PREFIX| Constructor and Description |
|---|
PortletContextResourceLoader(PortletContext portletContext)
Create a new PortletContextResourceLoader.
|
| Modifier and Type | Method and Description |
|---|---|
protected Resource |
getResourceByPath(String path)
This implementation supports file paths beneath the root of the web application.
|
getClassLoader, getResource, setClassLoaderpublic PortletContextResourceLoader(PortletContext portletContext)
portletContext - the PortletContext to load resources withprotected Resource getResourceByPath(String path)
getResourceByPath in class DefaultResourceLoaderpath - the path to the resourcePortletContextResource