class FilteredIterableLocalLoader extends java.lang.Object implements IterableLocalLoader
| Modifier and Type | Field and Description |
|---|---|
private ClassFilter |
classFilter |
private IterableLocalLoader |
originalLoader |
private PathFilter |
resourcePathFilter |
| Constructor and Description |
|---|
FilteredIterableLocalLoader(ClassFilter classFilter,
PathFilter resourcePathFilter,
IterableLocalLoader originalLoader) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<Resource> |
iterateResources(java.lang.String startPath,
boolean recursive)
Enumerate all the resources under the given path.
|
java.lang.Class<?> |
loadClassLocal(java.lang.String name,
boolean resolve)
Load a class which is locally defined by this loader.
|
java.lang.Package |
loadPackageLocal(java.lang.String name)
Load a package which is locally defined by this loader.
|
java.util.List<Resource> |
loadResourceLocal(java.lang.String name)
Load a resource which is locally defined by this loader.
|
private final ClassFilter classFilter
private final IterableLocalLoader originalLoader
private final PathFilter resourcePathFilter
FilteredIterableLocalLoader(ClassFilter classFilter, PathFilter resourcePathFilter, IterableLocalLoader originalLoader)
public java.lang.Class<?> loadClassLocal(java.lang.String name,
boolean resolve)
LocalLoaderloadClassLocal in interface LocalLoadername - the class nameresolve - true to resolve the classnull if there is no local class with this namepublic java.lang.Package loadPackageLocal(java.lang.String name)
LocalLoaderloadPackageLocal in interface LocalLoadername - the package namenull if there is no local package with this namepublic java.util.List<Resource> loadResourceLocal(java.lang.String name)
LocalLoader/" characters.loadResourceLocal in interface LocalLoadername - the resource pathpublic java.util.Iterator<Resource> iterateResources(java.lang.String startPath, boolean recursive)
IterableLocalLoader.., such segments will be consumed.
If the path is absolute, it will be converted to a relative path by dropping the leading /.iterateResources in interface IterableLocalLoaderstartPath - the path to search underrecursive - true to recursively descend into subdirectories, false to only read this path