spring-webmvc-portlet

org.springframework.web.portlet.context
Class PortletContextResourceLoader

java.lang.Object
  extended by org.springframework.core.io.DefaultResourceLoader
      extended by org.springframework.web.portlet.context.PortletContextResourceLoader
All Implemented Interfaces:
org.springframework.core.io.ResourceLoader

public class PortletContextResourceLoader
extends org.springframework.core.io.DefaultResourceLoader

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.

Since:
2.0
Author:
Juergen Hoeller, John A. Lewis
See Also:
getResourceByPath(java.lang.String), PortletContextResource, GenericPortletBean

Field Summary
 
Fields inherited from interface org.springframework.core.io.ResourceLoader
CLASSPATH_URL_PREFIX
 
Constructor Summary
PortletContextResourceLoader(javax.portlet.PortletContext portletContext)
          Create a new PortletContextResourceLoader.
 
Method Summary
protected  org.springframework.core.io.Resource getResourceByPath(java.lang.String path)
          This implementation supports file paths beneath the root of the web application.
 
Methods inherited from class org.springframework.core.io.DefaultResourceLoader
getClassLoader, getResource, setClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletContextResourceLoader

public PortletContextResourceLoader(javax.portlet.PortletContext portletContext)
Create a new PortletContextResourceLoader.

Parameters:
portletContext - the PortletContext to load resources with
Method Detail

getResourceByPath

protected org.springframework.core.io.Resource getResourceByPath(java.lang.String path)
This implementation supports file paths beneath the root of the web application.

Overrides:
getResourceByPath in class org.springframework.core.io.DefaultResourceLoader
See Also:
PortletContextResource

spring-webmvc-portlet