Class ManifestScanner
java.lang.Object
org.apache.sling.testing.mock.osgi.ManifestScanner
Scan METAINF/MANIFEST.MF files.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Collection<String>
Get all bundle header values stored in MANIFEST.MF files as attributes.
-
Method Details
-
getValues
@NotNull public static @NotNull Collection<String> getValues(@NotNull @NotNull String attributeName) Get all bundle header values stored in MANIFEST.MF files as attributes. Attributes values from all manifest files are collected, and values separated by "," are returned individually. The order of the values from each entry is preserved, but the overall order when multiple bundles define such an entry is not deterministic. Duplicate values are eliminated.- Parameters:
attributeName
- Attribute / Bundle header name.- Returns:
- List of values.
-