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 ClassLoaderHandlerScanSpec. findClassLoaderHandlerForClassLoader(ClassLoader classLoader, LogNode log)voidScanResult. freeTempFiles(LogNode log)Free any temporary files created by extracting jars from within jars.voidClassLoaderHandler. 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).voidScanSpec. 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 voidAntClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classLoader, ClasspathOrder classpathOrderOut, LogNode log)voidEquinoxClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classLoader, ClasspathOrder classpathOrderOut, LogNode log)voidEquinoxContextFinderClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classLoader, ClasspathOrder classpathOrderOut, LogNode log)voidFallbackClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classLoader, ClasspathOrder classpathOrderOut, LogNode log)voidFelixClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classLoader, ClasspathOrder classpathOrderOut, LogNode log)voidJBossClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classLoader, ClasspathOrder classpathOrderOut, LogNode log)voidJPMSClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classLoader, ClasspathOrder classpathOrderOut, LogNode log)voidOSGiDefaultClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classloader, ClasspathOrder classpathOrderOut, LogNode log)voidURLClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classLoader, ClasspathOrder classpathOrderOut, LogNode log)voidWeblogicClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classLoader, ClasspathOrder classpathOrderOut, LogNode log)voidWebsphereLibertyClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classLoader, ClasspathOrder classpathOrderOut, LogNode log)voidWebsphereTraditionalClassLoaderHandler. handle(ScanSpec scanSpec, ClassLoader classloader, ClasspathOrder classpathOrderOut, LogNode log)ClassLoaderHandlerClassLoaderHandlerRegistry.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 LogNodeLogNode. log(String msg)Add a log entry.LogNodeLogNode. log(String msg, long elapsedTimeNanos)Add a log entry.LogNodeLogNode. log(String msg, long elapsedTimeNanos, Throwable e)Add a log entry.LogNodeLogNode. log(String sortKey, String msg)Add a log entry with sort key for deterministic ordering.LogNodeLogNode. log(String sortKey, String msg, long elapsedTimeNanos)Add a log entry with sort key for deterministic ordering.LogNodeLogNode. log(String sortKey, String msg, long elapsedTimeNanos, Throwable e)Add a log entry with sort key for deterministic ordering.LogNodeLogNode. log(String sortKey, String msg, Throwable e)Add a log entry with sort key for deterministic ordering.LogNodeLogNode. log(String msg, Throwable e)Add a log entry.LogNodeLogNode. log(Throwable e)Add a log entry.LogNodeLogNode. 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 booleanClasspathOrder. addClasspathElement(String pathElement, ClassLoader[] classLoaders, ScanSpec scanSpec, LogNode log)Add a classpath element relative to a base file.booleanClasspathOrder. addClasspathElement(String pathElement, ClassLoader classLoader, LogNode log)Add a classpath element relative to a base file.booleanClasspathOrder. addClasspathElementObject(Object pathObject, ClassLoader classLoader, LogNode log)Add classpath elements from an object obtained from reflection.booleanClasspathOrder. addClasspathElements(String pathStr, ClassLoader[] classLoaders, LogNode log)Add classpath elements, separated by the system path separator character.booleanClasspathOrder. addClasspathElements(String pathStr, ClassLoader classLoader, LogNode log)Add classpath elements, separated by the system path separator character.voidNestedJarHandler. close(LogNode log)Delete temporary files and release other resources.booleanSingletonMap. 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 ClassLoaderHandlerClasspathFinder. 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.StringClasspathOrModulePathEntry. getCanonicalPath(LogNode log)Gets the canonical path of the File object corresponding to the resolved path.ClassLoaderJarfileMetadataReader. getCustomClassLoader(NestedJarHandler nestedJarHandler, LogNode log)Create a custom URLClassLoader for the package root paths and lib jar entries in this jar.FileClasspathOrModulePathEntry. 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.JarfileMetadataReaderNestedJarHandler. getJarfileMetadataReader(File zipFile, String jarfilePackageRoot, LogNode log)Get aJarfileMetadataReadersingleton 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.VSingletonMap. 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.booleanClasspathOrModulePathEntry. isDirectory(LogNode log)True if this relative path corresponds with a directory.booleanClasspathOrModulePathEntry. isFile(LogNode log)True if this relative path corresponds with a file.static booleanJarUtils. 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.).booleanClasspathOrModulePathEntry. 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 voidJarUtils. logJavaInfo(LogNode log)Log the Java version and the JRE paths that were found.abstract VSingletonMap. 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> voidWorkQueue. 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> voidWorkQueue. 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.voidWorkQueue. startWorkers(ExecutorService executorService, int numWorkers, LogNode log)Start worker threads with a shared log.FileNestedJarHandler. 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.
-