Class ClassGraphClassLoader
java.lang.Object
java.lang.ClassLoader
io.github.classgraph.ClassGraphClassLoader
ClassLoader for classes found by ClassGraph during scanning.-
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?> getResource(String path) getResourceAsStream(String path) getResources(String path) URL[]getURLs()Get classpath URLs.Methods inherited from class ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Method Details
-
findClass
protected Class<?> findClass(String className) throws ClassNotFoundException, LinkageError, SecurityException - Overrides:
findClassin classClassLoader- Throws:
ClassNotFoundExceptionLinkageErrorSecurityException
-
getURLs
Get classpath URLs.- Returns:
- The classpath URLs in the
ScanResulthandled by thisClassLoader.
-
getResource
- Overrides:
getResourcein classClassLoader
-
getResources
- Overrides:
getResourcesin classClassLoader- Throws:
IOException
-
getResourceAsStream
- Overrides:
getResourceAsStreamin classClassLoader
-