public class ResourceWithFallbackLoader extends Object implements ResourceLoaderAware, ResourcePatternResolver
CLASSPATH_ALL_URL_PREFIX
CLASSPATH_URL_PREFIX
Constructor and Description |
---|
ResourceWithFallbackLoader() |
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getClassLoader() |
Resource |
getResource() |
Resource |
getResource(String location) |
Resource[] |
getResources() |
Resource[] |
getResources(String locationPattern) |
void |
setFallback(String fallback) |
void |
setPrimary(String primary) |
void |
setResourceLoader(ResourceLoader resourceLoader) |
public void setResourceLoader(ResourceLoader resourceLoader)
setResourceLoader
in interface ResourceLoaderAware
public void setPrimary(String primary)
public void setFallback(String fallback)
public Resource getResource(String location)
getResource
in interface ResourceLoader
public Resource getResource()
public Resource[] getResources(String locationPattern) throws IOException
getResources
in interface ResourcePatternResolver
IOException
public Resource[] getResources() throws IOException
IOException
public ClassLoader getClassLoader()
getClassLoader
in interface ResourceLoader
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.