public class JarfileMetadataReader extends Object
Modifier and Type | Field | Description |
---|---|---|
List<String> |
classPathEntriesToScan |
"Class-Path" entries encountered in the manifest file.
|
boolean |
isSystemJar |
If true, this is a JRE jar.
|
List<String> |
libJarPaths |
Any jarfiles found in "lib/", "BOOT-INF/lib", "WEB-INF/lib", or "WEB-INF/lib-provided".
|
static String |
MANIFEST_PATH |
|
Set<String> |
packageRootRelativePaths |
Any jarfile package roots, including anything after "!" in the path to this jar in the classpath, and/or
"BOOT-INF/classes" or "WEB-INF/classes", if any files with this directory prefix are contained in the jar.
|
List<ZipEntry> |
zipEntries |
The ZipEntries for the zipfile.
|
Constructor | Description |
---|---|
JarfileMetadataReader(File jarFile,
LogNode log) |
Fast parser for jar manifest files.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addLibJarEntry(String libJarPath) |
|
void |
addPackageRootPath(String packageRoot) |
|
ClassLoader |
getCustomClassLoader(NestedJarHandler nestedJarHandler,
LogNode log) |
Create a custom URLClassLoader for the package root paths and lib jar entries in this jar.
|
public boolean isSystemJar
public List<ZipEntry> zipEntries
public List<String> classPathEntriesToScan
FastClasspathScanner#addNestedLibJarsToClasspath(true)
is called before scanning.public Set<String> packageRootRelativePaths
public List<String> libJarPaths
public static final String MANIFEST_PATH
public JarfileMetadataReader(File jarFile, LogNode log)
public ClassLoader getCustomClassLoader(NestedJarHandler nestedJarHandler, LogNode log)
public void addPackageRootPath(String packageRoot)
public void addLibJarEntry(String libJarPath)
Copyright © 2018. All rights reserved.