|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.core.io.support.PathMatchingResourcePatternResolver
ch.elca.el4j.core.io.support.OrderedPathMatchingResourcePatternResolver
public class OrderedPathMatchingResourcePatternResolver
This class extends PathMatchingResourcePatternResolver in the way that it sorts the files in a folder alphabetically.
| Field Summary | |
|---|---|
protected boolean |
m_ascending
Is order ascending? |
protected Comparator<Resource> |
m_resourceComparator
The resource comparator. |
| Fields inherited from interface org.springframework.core.io.support.ResourcePatternResolver |
|---|
CLASSPATH_ALL_URL_PREFIX |
| Fields inherited from interface org.springframework.core.io.ResourceLoader |
|---|
CLASSPATH_URL_PREFIX |
| Constructor Summary | |
|---|---|
OrderedPathMatchingResourcePatternResolver()
Create a PathMatchingResourcePatternResolver using a DefaultResourceLoader that sorts the files in a folder alphabetically. |
|
OrderedPathMatchingResourcePatternResolver(ClassLoader classLoader)
Create a new PathMatchingResourcePatternResolver with a DefaultResourceLoader that sorts the files in a folder alphabetically. |
|
OrderedPathMatchingResourcePatternResolver(ResourceLoader resourceLoader)
Create a new PathMatchingResourcePatternResolver that sorts the files in a folder alphabetically. |
|
| Method Summary | |
|---|---|
protected Set |
doFindPathMatchingFileResources(Resource rootDirResource,
String subPattern)
|
protected Set |
doFindPathMatchingJarResources(Resource rootDirResource,
String subPattern)
|
boolean |
isAscending()
|
void |
setAscending(boolean ascending)
|
| Methods inherited from class org.springframework.core.io.support.PathMatchingResourcePatternResolver |
|---|
convertClassLoaderURL, determineRootDir, doFindMatchingFileSystemResources, doRetrieveMatchingFiles, findAllClassPathResources, findPathMatchingResources, getClassLoader, getJarFile, getPathMatcher, getResource, getResourceLoader, getResources, isJarResource, resolveRootDirResource, retrieveMatchingFiles, setPathMatcher |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean m_ascending
protected final Comparator<Resource> m_resourceComparator
| Constructor Detail |
|---|
public OrderedPathMatchingResourcePatternResolver()
ClassLoader access will happen via the thread context class loader.
DefaultResourceLoaderpublic OrderedPathMatchingResourcePatternResolver(ClassLoader classLoader)
classLoader - the ClassLoader to load classpath resources with,
or null for using the thread context class loaderDefaultResourceLoaderpublic OrderedPathMatchingResourcePatternResolver(ResourceLoader resourceLoader)
ClassLoader access will happen via the thread context class loader.
resourceLoader - the ResourceLoader to load root directories and
actual resources with| Method Detail |
|---|
public boolean isAscending()
public void setAscending(boolean ascending)
ascending - is order ascending?
protected Set doFindPathMatchingFileResources(Resource rootDirResource,
String subPattern)
throws IOException
doFindPathMatchingFileResources in class PathMatchingResourcePatternResolverIOException
protected Set doFindPathMatchingJarResources(Resource rootDirResource,
String subPattern)
throws IOException
doFindPathMatchingJarResources in class PathMatchingResourcePatternResolverIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||