Modifier and Type | Method | Description |
---|---|---|
void |
AntClassLoaderHandler.handle(ScanSpec scanSpec,
ClassLoader classLoader,
ClasspathOrder classpathOrderOut,
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 |
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 |
Java9ClassLoaderHandler.handle(ScanSpec scanSpec,
ClassLoader classLoader,
ClasspathOrder classpathOrderOut,
LogNode log) |
|
void |
JBossClassLoaderHandler.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.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
ClasspathOrder.addClasspathElement(String pathElement,
ClassLoader[] classLoaders,
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.
|
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.
|
void |
ScanResult.freeTempFiles(LogNode log) |
Free any temporary files created by extracting jars from within jars.
|
void |
ClasspathResource.processFileMatch(FileMatchProcessorAny fileMatchProcessor,
LogNode log) |
Constructor | Description |
---|---|
ClassLoaderAndModuleFinder(ScanSpec scanSpec,
LogNode log) |
A class to find the unique ordered classpath elements.
|
Scanner(ScanSpec scanSpec,
ExecutorService executorService,
int numParallelTasks,
boolean enableRecursiveScanning,
ScanResultProcessor scannResultProcessor,
FailureHandler failureHandler,
LogNode log) |
The classpath scanner.
|
ScanSpec(String[] scanSpecFields,
LogNode log) |
Parses the scanning specification that was passed to the FastClasspathScanner constructor, and finds all
ClassLoaders.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
FileMatchProcessorWrapper.filePathMatches(String relativePathStr,
LogNode log) |
|
boolean |
FileMatchProcessorWrapper.FilePathTester.filePathMatches(String relativePathStr,
LogNode log) |
|
void |
ClassMatchProcessorWrapper.lookForMatches(ScanResult scanResult,
LogNode log) |
|
void |
FileMatchProcessorWrapper.processMatch(ClasspathResource classpathResource,
LogNode log) |
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.
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
ClassLoader |
JarfileMetadataReader.getCustomClassLoader(NestedJarHandler nestedJarHandler,
LogNode log) |
Create a custom URLClassLoader for the package root paths and lib jar entries in this jar.
|
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 a
JarfileMetadataReader singleton for a given jarfile (so that the manifest and ZipEntries will
only be read once). |
Recycler<ModuleRef.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.
|
static boolean |
JarUtils.isJREJar(String filePath,
Set<String> whitelistedLibOrExtJarPaths,
Set<String> blacklistedLibOrExtJarPaths,
LogNode log) |
Determine whether a given jarfile is in a JRE system directory (jre, jre/lib, jre/lib/ext, 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, then return the temporary directory.
|
Constructor | Description |
---|---|
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.
|
Copyright © 2018. All rights reserved.