当前页面:
在线文档首页 >
Spring Framework 2.0.5 API 文档英文版
PortletContextResourceLoader (Spring Framework API 2.0) - Spring Framework 2.0.5 API 文档英文版
org.springframework.web.portlet.context
Class PortletContextResourceLoader
java.lang.Object
org.springframework.core.io.DefaultResourceLoader
org.springframework.web.portlet.context.PortletContextResourceLoader
- All Implemented Interfaces:
- ResourceLoader
public class PortletContextResourceLoader
- extends 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortletContextResourceLoader
public PortletContextResourceLoader(PortletContext portletContext)
- Create a new PortletContextResourceLoader.
- Parameters:
portletContext
- the PortletContext to load resources with
getResourceByPath
protected Resource getResourceByPath(String path)
- This implementation supports file paths beneath the root of the web application.
- Overrides:
getResourceByPath
in class DefaultResourceLoader
- Parameters:
path
- path to the resource
- Returns:
- Resource handle
- See Also:
PortletContextResource
Copyright © 2002-2007 The Spring Framework.