public class

PortletContextResourceLoader

extends DefaultResourceLoader
java.lang.Object
   ↳ org.springframework.core.io.DefaultResourceLoader
     ↳ org.springframework.web.portlet.context.PortletContextResourceLoader

Class Overview

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.

Summary

[Expand]
Inherited Constants
From interface org.springframework.core.io.ResourceLoader
Public Constructors
PortletContextResourceLoader(PortletContext portletContext)
Create a new PortletContextResourceLoader.
Protected Methods
Resource getResourceByPath(String path)
This implementation supports file paths beneath the root of the web application.
[Expand]
Inherited Methods
From class org.springframework.core.io.DefaultResourceLoader
From class java.lang.Object
From interface org.springframework.core.io.ResourceLoader

Public Constructors

public PortletContextResourceLoader (PortletContext portletContext)

Create a new PortletContextResourceLoader.

Parameters
portletContext the PortletContext to load resources with

Protected Methods

protected Resource getResourceByPath (String path)

This implementation supports file paths beneath the root of the web application.

Parameters
path the path to the resource
Returns
  • the corresponding Resource handle