ClassGraph |
ClassGraph.addClassLoader(ClassLoader classLoader) |
Add a ClassLoader to the list of ClassLoaders to scan.
|
ClassGraph |
ClassGraph.addModuleLayer(Object moduleLayer) |
Add a ModuleLayer to the list of ModuleLayers to scan.
|
ClassGraph |
ClassGraph.blacklistClasses(String... classNames) |
Specifically blacklist one or more specific classes, preventing them from being scanned even if they are in a
whitelisted package.
|
ClassGraph |
ClassGraph.blacklistClasspathElementsContainingResourcePath(String... resourcePaths) |
Blacklist classpath elements based on resource paths.
|
ClassGraph |
ClassGraph.blacklistJars(String... jarLeafNames) |
Blacklist one or more jars, preventing them from being scanned.
|
ClassGraph |
ClassGraph.blacklistLibOrExtJars(String... jarLeafNames) |
Blacklist one or more jars in a JRE/JDK "lib/" or "ext/" directory, preventing them from being scanned.
|
ClassGraph |
ClassGraph.blacklistModules(String... moduleNames) |
Blacklist one or more modules, preventing them from being scanned.
|
ClassGraph |
ClassGraph.blacklistPackages(String... packageNames) |
Prevent the scanning of one or more specific packages and their sub-packages.
|
ClassGraph |
ClassGraph.blacklistPaths(String... paths) |
Prevent the scanning of one or more specific paths and their sub-directories / nested paths.
|
ClassGraph |
ClassGraph.disableDirScanning() |
Disables the scanning of directories.
|
ClassGraph |
ClassGraph.disableJarScanning() |
Disables the scanning of jarfiles.
|
ClassGraph |
ClassGraph.disableModuleScanning() |
Disables the scanning of modules.
|
ClassGraph |
ClassGraph.disableNestedJarScanning() |
Disables the scanning of nested jarfiles (jarfiles within jarfiles).
|
ClassGraph |
ClassGraph.disableRuntimeInvisibleAnnotations() |
Causes only runtime visible annotations to be scanned (causes runtime invisible annotations to be ignored).
|
ClassGraph |
ClassGraph.enableAllInfo() |
Enables the scanning of all classes, fields, methods, annotations, and static final field constant
initializer values, and ignores all visibility modifiers, so that both public and non-public classes, fields
and methods are all scanned.
|
ClassGraph |
ClassGraph.enableAnnotationInfo() |
Enables the saving of annotation info (for class, field, method and method parameter annotations) during the
scan.
|
ClassGraph |
ClassGraph.enableClassInfo() |
|
ClassGraph |
ClassGraph.enableExternalClasses() |
Causes ClassGraph to return classes that are not in the whitelisted packages, but that are directly referred
to by classes within whitelisted packages as a superclass, implemented interface or annotation.
|
ClassGraph |
ClassGraph.enableFieldInfo() |
Enables the saving of field info during the scan.
|
ClassGraph |
ClassGraph.enableInterClassDependencies() |
|
ClassGraph |
ClassGraph.enableMethodInfo() |
Enables the saving of method info during the scan.
|
ClassGraph |
ClassGraph.enableRealtimeLogging() |
Enables logging by calling verbose() , and then sets the logger to "realtime logging mode", where log
entries are written out immediately to stderr, rather than only after the scan has completed.
|
ClassGraph |
ClassGraph.enableRemoteJarScanning() |
Enable classpath elements to be fetched from remote http/https URLs to local temporary files and scanned.
|
ClassGraph |
ClassGraph.enableStaticFinalFieldConstantInitializerValues() |
Enables the saving of static final field constant initializer values.
|
ClassGraph |
ClassGraph.enableSystemJarsAndModules() |
Enables the scanning of system packages ("java.*" , "javax.*" , "javafx.*" ,
"jdk.*" , "oracle.*" , "sun.*" ) -- these are not scanned by default for speed.
|
ClassGraph |
ClassGraph.enableSystemPackages() |
Deprecated.
|
ClassGraph |
ClassGraph.filterClasspathElements(ClassGraph.ClasspathElementFilter classpathElementFilter) |
Add a classpath element filter.
|
ClassGraph |
ClassGraph.ignoreClassVisibility() |
Causes class visibility to be ignored, enabling private, package-private and protected classes to be scanned.
|
ClassGraph |
ClassGraph.ignoreFieldVisibility() |
Causes field visibility to be ignored, enabling private, package-private and protected fields to be scanned.
|
ClassGraph |
ClassGraph.ignoreMethodVisibility() |
Causes method visibility to be ignored, enabling private, package-private and protected methods to be
scanned.
|
ClassGraph |
ClassGraph.ignoreParentClassLoaders() |
Ignore parent classloaders (i.e.
|
ClassGraph |
ClassGraph.ignoreParentModuleLayers() |
Ignore parent module layers (i.e.
|
ClassGraph |
ClassGraph.initializeLoadedClasses() |
Causes classes loaded using ClassInfo.loadClass() to be are initialized after class loading (the
default is to not initialize classes).
|
ClassGraph |
ClassGraph.overrideClassLoaders(ClassLoader... overrideClassLoaders) |
Completely override (and ignore) system ClassLoaders and the java.class.path system property.
|
ClassGraph |
ClassGraph.overrideClasspath(Iterable<?> overrideClasspathElements) |
Override the automatically-detected classpath with a custom path.
|
ClassGraph |
ClassGraph.overrideClasspath(Object... overrideClasspathElements) |
Override the automatically-detected classpath with a custom path.
|
ClassGraph |
ClassGraph.overrideClasspath(String overrideClasspath) |
Override the automatically-detected classpath with a custom path, with path elements separated by
File.pathSeparatorChar.
|
ClassGraph |
ClassGraph.overrideModuleLayers(Object... overrideModuleLayers) |
Completely override (and ignore) the visible ModuleLayers, and instead scan the requested ModuleLayers.
|
ClassGraph |
ClassGraph.removeTemporaryFilesAfterScan() |
Remove temporary files, including nested jarfiles (jarfiles within jarfiles, which have to be extracted
during scanning in order to be read) from their temporary directory as soon as the scan has completed.
|
ClassGraph |
ClassGraph.verbose() |
Switches on verbose logging to System.err.
|
ClassGraph |
ClassGraph.whitelistClasses(String... classNames) |
Scan one or more specific classes, without scanning other classes in the same package unless the package is
itself whitelisted.
|
ClassGraph |
ClassGraph.whitelistClasspathElementsContainingResourcePath(String... resourcePaths) |
Whitelist classpath elements based on resource paths.
|
ClassGraph |
ClassGraph.whitelistJars(String... jarLeafNames) |
Whitelist one or more jars.
|
ClassGraph |
ClassGraph.whitelistLibOrExtJars(String... jarLeafNames) |
Whitelist one or more jars in a JRE/JDK "lib/" or "ext/" directory (these directories are not scanned unless
enableSystemPackages() is called, by association with the JRE/JDK).
|
ClassGraph |
ClassGraph.whitelistModules(String... moduleNames) |
Whitelist one or more modules to scan.
|
ClassGraph |
ClassGraph.whitelistPackages(String... packageNames) |
Scan one or more specific packages and their sub-packages.
|
ClassGraph |
ClassGraph.whitelistPackagesNonRecursive(String... packageNames) |
Scan one or more specific packages, without recursively scanning sub-packages unless they are themselves
whitelisted.
|
ClassGraph |
ClassGraph.whitelistPaths(String... paths) |
Scan one or more specific paths, and their sub-directories or nested paths.
|
ClassGraph |
ClassGraph.whitelistPathsNonRecursive(String... paths) |
Scan one or more specific paths, without recursively scanning sub-directories or nested paths unless they are
themselves whitelisted.
|