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, scanprivate 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.ScannerscanJarFile in class ClassPath.Scannerprotected void scanDirectory(java.lang.ClassLoader classloader,
java.io.File directory)
throws java.io.IOException
ClassPath.ScannerscanDirectory in class ClassPath.Scannerjava.io.IOExceptionprivate 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 directorypackagePrefix - resource path prefix inside classloader for any files found
under directorycurrentPath - canonical files already visited in the current directory tree path, for
cycle eliminationjava.io.IOException