org.kuali.rice.core.api.util
Class ClasspathOrFileResourceLoader
java.lang.Object
org.springframework.core.io.DefaultResourceLoader
org.kuali.rice.core.api.util.ClasspathOrFileResourceLoader
- All Implemented Interfaces:
- org.springframework.core.io.ResourceLoader
public class ClasspathOrFileResourceLoader
- extends org.springframework.core.io.DefaultResourceLoader
A ResourceLoader implementation which loads from the classpath if the path name is prefixed with "classpath:" and
loads as a FileSystemResource
if not.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Fields inherited from interface org.springframework.core.io.ResourceLoader |
CLASSPATH_URL_PREFIX |
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 |
ClasspathOrFileResourceLoader
public ClasspathOrFileResourceLoader()
getResourceByPath
protected org.springframework.core.io.Resource getResourceByPath(String path)
- Overrides:
getResourceByPath
in class org.springframework.core.io.DefaultResourceLoader
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.