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)
LocalLoader
loadClassLocal
in interface LocalLoader
name
- 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)
LocalLoader
loadPackageLocal
in interface LocalLoader
name
- 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 LocalLoader
name
- 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 IterableLocalLoader
startPath
- the path to search underrecursive
- true
to recursively descend into subdirectories, false
to only read this path