org.kuali.rice.core.api.util
Class ClasspathOrFileResourceLoader

java.lang.Object
  extended by org.springframework.core.io.DefaultResourceLoader
      extended by 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)

Field Summary
 
Fields inherited from interface org.springframework.core.io.ResourceLoader
CLASSPATH_URL_PREFIX
 
Constructor Summary
ClasspathOrFileResourceLoader()
           
 
Method Summary
protected  org.springframework.core.io.Resource getResourceByPath(String path)
           
 
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

ClasspathOrFileResourceLoader

public ClasspathOrFileResourceLoader()
Method Detail

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.