类 PortletContextResourceLoader
- java.lang.Object
- org.springframework.core.io.DefaultResourceLoader
- org.springframework.web.portlet.context.PortletContextResourceLoader
- 所有已实现的接口:
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.
- 从以下版本开始:
- 2.0
- 作者:
- Juergen Hoeller, John A. Lewis
- 另请参阅:
getResourceByPath(java.lang.String)
,PortletContextResource
,GenericPortletBean
嵌套类概要
从类继承的嵌套类/接口 org.springframework.core.io.DefaultResourceLoader
DefaultResourceLoader.ClassPathContextResource
字段概要
从接口继承的字段 org.springframework.core.io.ResourceLoader
CLASSPATH_URL_PREFIX
构造器概要
构造器 构造器 说明 PortletContextResourceLoader(PortletContext portletContext)
Create a new PortletContextResourceLoader.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected Resource
getResourceByPath(String path)
This implementation supports file paths beneath the root of the web application.从类继承的方法 org.springframework.core.io.DefaultResourceLoader
addProtocolResolver, getClassLoader, getProtocolResolvers, getResource, setClassLoader
构造器详细资料
PortletContextResourceLoader
public PortletContextResourceLoader(PortletContext portletContext)
Create a new PortletContextResourceLoader.- 参数:
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.- 覆盖:
getResourceByPath
在类中DefaultResourceLoader
- 参数:
path
- the path to the resource- 返回:
- the corresponding Resource handle
- 另请参阅:
PortletContextResource