public class Manifests extends Object
| Constructor and Description |
|---|
Manifests() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAttribute(Class clazz,
String attribute) |
static String |
getAttribute(Class clazz,
String attribute,
String defaultValue) |
static Manifest |
getManifest(Class clazz)
Returns the manifest of the jar file that contains the given
clazz. |
@Nullable public static Manifest getManifest(@Nonnull Class clazz)
Returns the manifest of the jar file that contains the given clazz.
If the MANIFEST is not found, null is returned.
clazz - clazz@Nullable public static String getAttribute(@Nonnull Class clazz, @Nonnull String attribute, @Nullable String defaultValue)
Copyright © 2013. All Rights Reserved.