Uses of Class
io.github.lukehutch.fastclasspathscanner.utils.LogNode
-
Packages that use LogNode Package Description io.github.lukehutch.fastclasspathscanner io.github.lukehutch.fastclasspathscanner.classloaderhandler io.github.lukehutch.fastclasspathscanner.utils -
-
Uses of LogNode in io.github.lukehutch.fastclasspathscanner
Methods in io.github.lukehutch.fastclasspathscanner with parameters of type LogNode Modifier and Type Method Description ClassLoaderHandler
ScanSpec. findClassLoaderHandlerForClassLoader(ClassLoader classLoader, LogNode log)
void
ClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classLoader, ClasspathOrder classpathOrderOut, LogNode log)
Determine if a given ClassLoader can be handled (meaning that its classpath elements can be extracted from it), and if it can, extract the classpath elements from the ClassLoader and register them with the ClasspathFinder using classpathFinder.addClasspathElement(pathElement) or classpathFinder.addClasspathElements(path).void
ScanSpec. log(LogNode log)
-
Uses of LogNode in io.github.lukehutch.fastclasspathscanner.classloaderhandler
Methods in io.github.lukehutch.fastclasspathscanner.classloaderhandler with parameters of type LogNode Modifier and Type Method Description void
AntClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classLoader, ClasspathOrder classpathOrderOut, LogNode log)
void
EquinoxClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classLoader, ClasspathOrder classpathOrderOut, LogNode log)
void
EquinoxContextFinderClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classLoader, ClasspathOrder classpathOrderOut, LogNode log)
void
FallbackClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classLoader, ClasspathOrder classpathOrderOut, LogNode log)
void
FelixClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classLoader, ClasspathOrder classpathOrderOut, LogNode log)
void
JBossClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classLoader, ClasspathOrder classpathOrderOut, LogNode log)
void
JPMSClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classLoader, ClasspathOrder classpathOrderOut, LogNode log)
void
OSGiDefaultClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classloader, ClasspathOrder classpathOrderOut, LogNode log)
void
URLClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classLoader, ClasspathOrder classpathOrderOut, LogNode log)
void
WeblogicClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classLoader, ClasspathOrder classpathOrderOut, LogNode log)
void
WebsphereLibertyClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classLoader, ClasspathOrder classpathOrderOut, LogNode log)
void
WebsphereTraditionalClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classloader, ClasspathOrder classpathOrderOut, LogNode log)
ClassLoaderHandler
ClassLoaderHandlerRegistry.ClassLoaderHandlerRegistryEntry. instantiate(LogNode log)
Instantiate a ClassLoaderHandler, or return null if the class could not be instantiated. -
Uses of LogNode in io.github.lukehutch.fastclasspathscanner.utils
Methods in io.github.lukehutch.fastclasspathscanner.utils that return LogNode Modifier and Type Method Description LogNode
LogNode. log(String msg)
Add a log entry.LogNode
LogNode. log(String msg, long elapsedTimeNanos)
Add a log entry.LogNode
LogNode. log(String msg, long elapsedTimeNanos, Throwable e)
Add a log entry.LogNode
LogNode. log(String sortKey, String msg)
Add a log entry with sort key for deterministic ordering.LogNode
LogNode. log(String sortKey, String msg, long elapsedTimeNanos)
Add a log entry with sort key for deterministic ordering.LogNode
LogNode. log(String sortKey, String msg, long elapsedTimeNanos, Throwable e)
Add a log entry with sort key for deterministic ordering.LogNode
LogNode. log(String sortKey, String msg, Throwable e)
Add a log entry with sort key for deterministic ordering.LogNode
LogNode. log(String msg, Throwable e)
Add a log entry.LogNode
LogNode. log(Throwable e)
Add a log entry.LogNode
LogNode. log(List<String> msgs)
Add a series of log entries.Methods in io.github.lukehutch.fastclasspathscanner.utils with parameters of type LogNode Modifier and Type Method Description boolean
ClasspathOrder. addClasspathElement(String pathElement, ClassLoader[] classLoaders, ScanSpec scanSpec, LogNode log)
Add a classpath element relative to a base file.boolean
ClasspathOrder. addClasspathElement(String pathElement, ClassLoader classLoader, LogNode log)
Add a classpath element relative to a base file.boolean
ClasspathOrder. addClasspathElementObject(Object pathObject, ClassLoader classLoader, LogNode log)
Add classpath elements from an object obtained from reflection.boolean
ClasspathOrder. addClasspathElements(String pathStr, ClassLoader[] classLoaders, LogNode log)
Add classpath elements, separated by the system path separator character.boolean
ClasspathOrder. addClasspathElements(String pathStr, ClassLoader classLoader, LogNode log)
Add classpath elements, separated by the system path separator character.void
NestedJarHandler. close(LogNode log)
Delete temporary files and release other resources.boolean
SingletonMap. createSingleton(K key, LogNode log)
Initialize a value object for this key and return true, if this is the first time this key has been seen, otherwise return false.static ClassLoaderHandler
ClasspathFinder. findClassLoaderHandlerForClassLoader(ScanSpec scanSpec, ClassLoader classLoader, LogNode log)
Instantiate a ClassLoaderHandler for a given class, or return an instance of FallbackClassLoaderHandler if no ClassLoaderHandler can handle the class.String
ClasspathOrModulePathEntry. getCanonicalPath(LogNode log)
Gets the canonical path of the File object corresponding to the resolved path.ClassLoader
JarfileMetadataReader. getCustomClassLoader(NestedJarHandler nestedJarHandler, LogNode log)
Create a custom URLClassLoader for the package root paths and lib jar entries in this jar.File
ClasspathOrModulePathEntry. getFile(LogNode log)
Get the File object for the resolved path.Map.Entry<File,Set<String>>
NestedJarHandler. getInnermostNestedJar(String nestedJarPath, LogNode log)
Get a File for a given (possibly nested) jarfile path, unzipping the first N-1 segments of an N-segment '!'-delimited path to temporary files, then returning the File reference for the N-th temporary file.JarfileMetadataReader
NestedJarHandler. getJarfileMetadataReader(File zipFile, String jarfilePackageRoot, LogNode log)
Get aJarfileMetadataReader
singleton for a given jarfile (so that the manifest and ZipEntries will only be read once).Recycler<ModuleReaderProxy,IOException>
NestedJarHandler. getModuleReaderProxyRecycler(ModuleRef moduleRef, LogNode log)
Get a ModuleReaderProxy recycler given a ModuleRef.V
SingletonMap. getOrCreateSingleton(K key, LogNode log)
Check if the given key is in the map, and if so, return it.Recycler<ZipFile,IOException>
NestedJarHandler. getZipFileRecycler(File zipFile, LogNode log)
Get a ZipFile recycler given the (non-nested) canonical path of a jarfile.boolean
ClasspathOrModulePathEntry. isDirectory(LogNode log)
True if this relative path corresponds with a directory.boolean
ClasspathOrModulePathEntry. isFile(LogNode log)
True if this relative path corresponds with a file.static boolean
JarUtils. isJREJar(String filePath, ScanSpec scanSpec, LogNode log)
Determine whether a given jarfile is in a JRE system directory (jre, jre/lib, jre/lib/ext, etc.).boolean
ClasspathOrModulePathEntry. isValidClasspathElement(ScanSpec scanSpec, LogNode log)
True if this relative path is a valid classpath element: that its path can be canonicalized, that it exists, that it is a jarfile or directory, that it is not a blacklisted jar, that it should be scanned, etc.static void
JarUtils. logJavaInfo(LogNode log)
Log the Java version and the JRE paths that were found.abstract V
SingletonMap. newInstance(K key, LogNode log)
Construct a new singleton instance.static byte[]
FileUtils. readAllBytes(InputStream inputStream, long fileSize, LogNode log)
Read all the bytes in an InputStream.static <U> void
WorkQueue. runWorkQueue(Collection<U> elements, ExecutorService executorService, int numParallelTasks, WorkQueue.WorkUnitProcessor<U> workUnitProcessor, InterruptionChecker interruptionChecker, LogNode log)
Start a work queue on the elements in the provided collection, blocking until all work units have been completed.static <U> void
WorkQueue. runWorkQueue(Collection<U> elements, ExecutorService executorService, int numParallelTasks, WorkQueue.WorkUnitProcessor<U> workUnitProcessor, WorkQueue.WorkQueuePreStartHook<U> workQueuePreStartHook, InterruptionChecker interruptionChecker, LogNode log)
Start a work queue on the elements in the provided collection, blocking until all work units have been completed.void
WorkQueue. startWorkers(ExecutorService executorService, int numWorkers, LogNode log)
Start worker threads with a shared log.File
NestedJarHandler. unzipToTempDir(File jarFile, String packageRoot, LogNode log)
Unzip a given package root within a zipfile to a temporary directory, starting several more threads to perform the unzip in parallel, then return the temporary directory.Constructors in io.github.lukehutch.fastclasspathscanner.utils with parameters of type LogNode Constructor Description AutoCloseableFutureListWithCompletionBarrier(int size, LogNode log)
ClassLoaderAndModuleFinder(ScanSpec scanSpec, LogNode log)
A class to find the unique ordered classpath elements.ClasspathFinder(ScanSpec scanSpec, NestedJarHandler nestedJarHandler, LogNode log)
A class to find the unique ordered classpath elements.ClasspathOrModulePathEntry(ModuleRef moduleRef, NestedJarHandler nestedJarHandler, LogNode log)
A relative path for a module (in JDK9+).ClasspathOrModulePathEntry(String pathToResolveAgainst, String relativePath, ClassLoader[] classLoaders, NestedJarHandler nestedJarHandler, ScanSpec scanSpec, LogNode log)
A relative path.JarfileMetadataReader(File jarFile, LogNode log)
Fast parser for jar manifest files.NestedJarHandler(ScanSpec scanSpec, InterruptionChecker interruptionChecker, LogNode log)
WorkQueue(Collection<T> initialWorkUnits, WorkQueue.WorkUnitProcessor<T> workUnitProcessor, InterruptionChecker interruptionChecker, LogNode log)
A parallel work queue.
-