Class ManifestUtils
java.lang.Object
org.eclipse.jetty.util.ManifestUtils
- 
Method Summary
Modifier and TypeMethodDescriptiongetManifest(Class<?> klass) getVersion(Class<?> klass) Attempts to return the version of the jar/module for the given class. 
- 
Method Details
- 
getManifest
 - 
getVersion
Attempts to return the version of the jar/module for the given class.
First, retrieves the
Implementation-Versionmain attribute of the manifest; if that is missing, retrieves the JPMS module version (via reflection); if that is missing, returns an empty Optional.- Parameters:
 klass- the class of the jar/module to retrieve the version- Returns:
 - the jar/module version, or an empty Optional
 
 
 -