Package io.quarkus.paths
Class ManifestAttributes
java.lang.Object
io.quarkus.paths.ManifestAttributes
Manifests for some libraries can be quite large (e.g. for commons-codec, it is 21 KB).
Given we keep a lot of ArchivePathTree around, it seems like a good idea to only keep around the Manifest entries that we actually use in Quarkus.
This can be extended further in the future if we need more attributes.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the parsed value of theAdd-Exportsattribute, or an empty map if it is absent.addOpens()Returns the parsed value of theAdd-Opensattribute, or an empty map if it is absent.Returns the value of theAutomatic-Module-Nameattribute, ornullif it is absent.booleanReturnstrueif the value of theEnable-Native-Accessattribute is present and equal toALL-UNNAMEDorfalseotherwise.Returns the value of theImplementation-Titleattribute, ornullif it is absent.Returns the value of theImplementation-Vendorattribute, ornullif it is absent.Returns the value of theImplementation-Versionattribute, ornullif it is absent.Returns the value of theSpecification-Titleattribute, ornullif it is absent.Returns the value of theSpecification-Vendorattribute, ornullif it is absent.Returns the value of theSpecification-Versionattribute, ornullif it is absent.booleanReturns the value of theMulti-Releaseattribute, orfalseif it is absent.Returns the value of theMain-Classattribute, ornullif it is absent.static ManifestAttributesReturns the manifest attributes for the given manifest, ornullif the given value isnull.
-
Method Details
-
of
Returns the manifest attributes for the given manifest, ornullif the given value isnull.- Parameters:
manifest- the manifest- Returns:
- the manifest attributes for the given manifest, or
nullif the given value isnull
-
getSpecificationTitle
Returns the value of theSpecification-Titleattribute, ornullif it is absent.- Returns:
- the value of the
Specification-Titleattribute, ornullif it is absent
-
getSpecificationVersion
Returns the value of theSpecification-Versionattribute, ornullif it is absent.- Returns:
- the value of the
Specification-Versionattribute, ornullif it is absent
-
getSpecificationVendor
Returns the value of theSpecification-Vendorattribute, ornullif it is absent.- Returns:
- the value of the
Specification-Vendorattribute, ornullif it is absent
-
getImplementationTitle
Returns the value of theImplementation-Titleattribute, ornullif it is absent.- Returns:
- the value of the
Implementation-Titleattribute, ornullif it is absent
-
getImplementationVersion
Returns the value of theImplementation-Versionattribute, ornullif it is absent.- Returns:
- the value of the
Implementation-Versionattribute, ornullif it is absent
-
getImplementationVendor
Returns the value of theImplementation-Vendorattribute, ornullif it is absent.- Returns:
- the value of the
Implementation-Vendorattribute, ornullif it is absent
-
isMultiRelease
public boolean isMultiRelease()Returns the value of theMulti-Releaseattribute, orfalseif it is absent.- Returns:
- the value of the
Multi-Releaseattribute, orfalseif it is absent
-
automaticModuleName
Returns the value of theAutomatic-Module-Nameattribute, ornullif it is absent.- Returns:
- the value of the
Automatic-Module-Nameattribute, ornullif it is absent
-
mainClassName
Returns the value of theMain-Classattribute, ornullif it is absent.- Returns:
- the value of the
Main-Classattribute, ornullif it is absent
-
addExports
Returns the parsed value of theAdd-Exportsattribute, or an empty map if it is absent. The returned map keys represent the module to export from, and the values represent the corresponding package sets to export from each module. The returned map is immutable and contains nonullkeys or values.- Returns:
- the parsed value of the
Add-Exportsattribute, or an empty map if it is absent
-
addOpens
Returns the parsed value of theAdd-Opensattribute, or an empty map if it is absent. The returned map keys represent the module to open from, and the values represent the corresponding package sets to open from each module. The returned map is immutable and contains nonullkeys or values.- Returns:
- the parsed value of the
Add-Opensattribute, or an empty map if it is absent
-
enableNativeAccess
public boolean enableNativeAccess()Returnstrueif the value of theEnable-Native-Accessattribute is present and equal toALL-UNNAMEDorfalseotherwise.- Returns:
trueif the value of theEnable-Native-Accessattribute is present and equal toALL-UNNAMEDorfalseotherwise
-