Package com.google.common.reflect
Class ClassPath.DefaultScanner
- java.lang.Object
-
- com.google.common.reflect.ClassPath.Scanner
-
- com.google.common.reflect.ClassPath.DefaultScanner
-
- Enclosing class:
- ClassPath
static final class ClassPath.DefaultScanner extends ClassPath.Scanner
-
-
Field Summary
Fields Modifier and Type Field Description private SetMultimap<java.lang.ClassLoader,java.lang.String>
resources
-
Constructor Summary
Constructors Constructor Description DefaultScanner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) ImmutableSet<ClassPath.ResourceInfo>
getResources()
private void
scanDirectory(java.io.File directory, java.lang.ClassLoader classloader, java.lang.String packagePrefix)
protected void
scanDirectory(java.lang.ClassLoader classloader, java.io.File directory)
Called when a directory is scanned for resource files.protected void
scanJarFile(java.lang.ClassLoader classloader, java.util.jar.JarFile file)
Called when a jar file is scanned for resource entries.-
Methods inherited from class com.google.common.reflect.ClassPath.Scanner
getClassPathEntries, getClassPathEntry, getClassPathFromManifest, scan, scan
-
-
-
-
Field Detail
-
resources
private final SetMultimap<java.lang.ClassLoader,java.lang.String> resources
-
-
Method Detail
-
getResources
ImmutableSet<ClassPath.ResourceInfo> getResources()
-
scanJarFile
protected void scanJarFile(java.lang.ClassLoader classloader, java.util.jar.JarFile file)
Description copied from class:ClassPath.Scanner
Called when a jar file is scanned for resource entries.- Specified by:
scanJarFile
in classClassPath.Scanner
-
scanDirectory
protected void scanDirectory(java.lang.ClassLoader classloader, java.io.File directory) throws java.io.IOException
Description copied from class:ClassPath.Scanner
Called when a directory is scanned for resource files.- Specified by:
scanDirectory
in classClassPath.Scanner
- Throws:
java.io.IOException
-
scanDirectory
private void scanDirectory(java.io.File directory, java.lang.ClassLoader classloader, java.lang.String packagePrefix) throws java.io.IOException
- Throws:
java.io.IOException
-
-