站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

FileSystemResourceLoader (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


org.springframework.core.io
Class FileSystemResourceLoader

java.lang.Object
  extended by org.springframework.core.io.DefaultResourceLoader
      extended by org.springframework.core.io.FileSystemResourceLoader
All Implemented Interfaces:
ResourceLoader

public class FileSystemResourceLoader
extends DefaultResourceLoader

ResourceLoader implementation that resolves paths as file system resources rather than as class path resources (DefaultResourceLoader's strategy).

FileSystemXmlApplicationContext is a full-fledged ApplicationContext implementation that provides the same resource path resolution strategy.

Since:
1.1.3
Author:
Juergen Hoeller
See Also:
FileSystemXmlApplicationContext

Field Summary
 
Fields inherited from interface org.springframework.core.io.ResourceLoader
CLASSPATH_URL_PREFIX
 
Constructor Summary
FileSystemResourceLoader()
           
 
Method Summary
protected  Resource getResourceByPath(String path)
          Resolve resource paths as file system paths.
 
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

FileSystemResourceLoader

public FileSystemResourceLoader()
Method Detail

getResourceByPath

protected Resource getResourceByPath(String path)
Resolve resource paths as file system paths.

Note: Even if a given path starts with a slash, it will get interpreted as relative to the current VM working directory. This is consistent with the semantics in a Servlet container.

Overrides:
getResourceByPath in class DefaultResourceLoader
Parameters:
path - path to the resource
Returns:
Resource handle
See Also:
FileSystemResource, ServletContextResourceLoader.getResourceByPath(java.lang.String)


Copyright (c) 2002-2007 The Spring Framework Project.