public class ManifestParser extends Object
Constructor and Description |
---|
ManifestParser(Logger logger,
Map configMap,
BundleRevision owner,
Map headerMap) |
public ManifestParser(Logger logger, Map configMap, BundleRevision owner, Map headerMap) throws BundleException
BundleException
public static List<BundleRequirement> parseDynamicImportHeader(Logger logger, BundleRevision owner, String header) throws BundleException
BundleException
public String getManifestVersion()
public int getActivationPolicy()
public String getActivationIncludeDirective()
public String getActivationExcludeDirective()
public boolean isExtension()
public String getSymbolicName()
public Version getBundleVersion()
public List<BundleCapability> getCapabilities()
public List<BundleRequirement> getRequirements()
public List<R4LibraryClause> getLibraryClauses()
public List<R4Library> getLibraries()
This method returns the selected native library metadata from the manifest. The information is not the raw metadata from the manifest, but is the native library clause selected according to the OSGi native library clause selection policy. The metadata returned by this method will be attached directly to a module and used for finding its native libraries at run time. To inspect the raw native library metadata refer to getLibraryClauses().
This method returns one of three values:
public static List<BundleCapability> parseExportHeader(Logger logger, BundleRevision owner, String header, String bsn, Version bv)
public static String parseExtensionBundleHeader(String header) throws BundleException
BundleException
public static void main(String[] headers)
public static List<String> parseDelimitedString(String value, String delim, boolean trim)
value
- the delimited string to parse.delim
- the characters delimiting the tokens.Copyright © 2006-2015 The Apache Software Foundation. All Rights Reserved.