static final class ClassPath.DefaultScanner extends ClassPath.Scanner
Modifier and Type | Field and Description |
---|---|
private SetMultimap<java.lang.ClassLoader,java.lang.String> |
resources |
Constructor and Description |
---|
DefaultScanner() |
Modifier and Type | Method and Description |
---|---|
(package private) ImmutableSet<ClassPath.ResourceInfo> |
getResources() |
protected void |
scanDirectory(java.lang.ClassLoader classloader,
java.io.File directory)
Called when a directory is scanned for resource files.
|
private void |
scanDirectory(java.io.File directory,
java.lang.ClassLoader classloader,
java.lang.String packagePrefix,
java.util.Set<java.io.File> currentPath)
Recursively scan the given directory, adding resources for each file encountered.
|
protected void |
scanJarFile(java.lang.ClassLoader classloader,
java.util.jar.JarFile file)
Called when a jar file is scanned for resource entries.
|
getClassPathEntries, getClassPathEntry, getClassPathFromManifest, parseJavaClassPath, scan, scan
private final SetMultimap<java.lang.ClassLoader,java.lang.String> resources
ImmutableSet<ClassPath.ResourceInfo> getResources()
protected void scanJarFile(java.lang.ClassLoader classloader, java.util.jar.JarFile file)
ClassPath.Scanner
scanJarFile
in class ClassPath.Scanner
protected void scanDirectory(java.lang.ClassLoader classloader, java.io.File directory) throws java.io.IOException
ClassPath.Scanner
scanDirectory
in class ClassPath.Scanner
java.io.IOException
private void scanDirectory(java.io.File directory, java.lang.ClassLoader classloader, java.lang.String packagePrefix, java.util.Set<java.io.File> currentPath) throws java.io.IOException
directory
- the root of the directory to scanclassloader
- the classloader that includes resources found in directory
packagePrefix
- resource path prefix inside classloader
for any files found
under directory
currentPath
- canonical files already visited in the current directory tree path, for
cycle eliminationjava.io.IOException