This loader wraps a delegate {@link ResourceLoader}that is used to resolve all files, the current base directory does not contain. {@link #newInstance} is always resolvedagainst the delegate, as a {@link ClassLoader} is needed.
You can chain several {@code FilesystemResourceLoader}s to allow lookup of files in more than one base directory.
NOTE: Plain paths will always be interpreted as relative to the current VM working directory, even if they start with a slash. (This is consistent with the semantics in a Servlet container.) Use an explicit "file:" prefix to enforce an absolute file path.
{@link org.springframework.context.support.FileSystemXmlApplicationContext}is a full-fledged ApplicationContext implementation that provides the same resource path resolution strategy. @author Juergen Hoeller @since 1.1.3 @see DefaultResourceLoader @see org.springframework.context.support.FileSystemXmlApplicationContext
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|