Package io.quarkus.paths
Class PathTreeWithManifest
java.lang.Object
io.quarkus.paths.PathTreeWithManifest
- All Implemented Interfaces:
PathTree
- Direct Known Subclasses:
ArchivePathTree,OpenContainerPathTree
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprotected booleanprotected boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedPathTreeWithManifest(boolean manifestEnabled) protectedPathTreeWithManifest(PathTreeWithManifest pathTreeWithManifest) -
Method Summary
Modifier and TypeMethodDescription<T> TApplies a function to a given path relative to the root of the tree.protected abstract <T> TIfMETA-INF/MANIFEST.MFfound, reads it and returns an instance ofManifestAttributes, a trimmed down version of the Manifest, otherwise returns null.protected voidprotected voidinitMultiReleaseMapping(Map<String, String> mrMapping) booleanprotected ReentrantReadWriteLock.ReadLockprotected ReentrantReadWriteLock.WriteLockprotected StringtoMultiReleaseRelativePath(String relativePath)
-
Field Details
-
JAVA_VERSION
public static final int JAVA_VERSION -
manifestEnabled
protected boolean manifestEnabled -
manifestInitialized
protected transient boolean manifestInitialized -
multiReleaseMapping
-
-
Constructor Details
-
PathTreeWithManifest
protected PathTreeWithManifest() -
PathTreeWithManifest
protected PathTreeWithManifest(boolean manifestEnabled) -
PathTreeWithManifest
-
-
Method Details
-
apply
Description copied from interface:PathTreeApplies a function to a given path relative to the root of the tree. If the path isn't found in the tree, thePathVisitargument passed to the function will benull. -
apply
-
getManifestAttributes
Description copied from interface:PathTreeIfMETA-INF/MANIFEST.MFfound, reads it and returns an instance ofManifestAttributes, a trimmed down version of the Manifest, otherwise returns null.- Specified by:
getManifestAttributesin interfacePathTree- Returns:
- parsed
META-INF/MANIFEST.MFif it's found, otherwisenull
-
initManifest
-
manifestWriteLock
-
manifestReadLock
-
isMultiReleaseJar
public boolean isMultiReleaseJar() -
getMultiReleaseMapping
-
initMultiReleaseMapping
-
toMultiReleaseRelativePath
-