public abstract class ClassPathResourceLocator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<URL> |
resourceList |
| Constructor and Description |
|---|
ClassPathResourceLocator() |
| Modifier and Type | Method and Description |
|---|---|
URL |
fixJarUrl(URL url) |
List<URL> |
loadResources(String path,
Boolean isConcreteResource)
Load resources from the classpath.
|
protected List<URL> |
searchResources(URL url)
Will use the Spring
PathMatchingResourcePatternResolver to find a resource that corresponds to the url. |
public List<URL> loadResources(String path, Boolean isConcreteResource)
isConcreteResource set to true
we search for a concrete resource.
then no deeper directory are attempted to search.path - isConcreteResource - protected List<URL> searchResources(URL url) throws IOException
PathMatchingResourcePatternResolver to find a resource that corresponds to the url.url - IOExceptionpublic URL fixJarUrl(URL url) throws MalformedURLException
MalformedURLExceptionCopyright © 2017. All rights reserved.