org.apache.felix.framework.util.manifestparser
Class ManifestParser
java.lang.Object
org.apache.felix.framework.util.manifestparser.ManifestParser
public class ManifestParser
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLAUSE_PATHS_INDEX
public static final int CLAUSE_PATHS_INDEX
- See Also:
- Constant Field Values
CLAUSE_DIRECTIVES_INDEX
public static final int CLAUSE_DIRECTIVES_INDEX
- See Also:
- Constant Field Values
CLAUSE_ATTRIBUTES_INDEX
public static final int CLAUSE_ATTRIBUTES_INDEX
- See Also:
- Constant Field Values
ManifestParser
public ManifestParser(Logger logger,
Map configMap,
Module owner,
Map headerMap)
throws BundleException
- Throws:
BundleException
getManifestVersion
public String getManifestVersion()
getActivationPolicy
public int getActivationPolicy()
getActivationIncludeDirective
public String getActivationIncludeDirective()
getActivationExcludeDirective
public String getActivationExcludeDirective()
isExtension
public boolean isExtension()
getSymbolicName
public String getSymbolicName()
getBundleVersion
public Version getBundleVersion()
getCapabilities
public getCapabilities()
getRequirements
public getRequirements()
getDynamicRequirements
public getDynamicRequirements()
getLibraryClauses
public getLibraryClauses()
getLibraries
public 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:
- null - if the are no native libraries for this module;
this may also indicate the native libraries are optional and
did not match the current platform.
- Zero-length R4Library array - if no matching native library
clause was found; this bundle should not resolve.
- Nonzero-length R4Library array - the native libraries
associated with the matching native library clause.
- Returns:
- null if there are no native libraries, a zero-length
array if no libraries matched, or an array of selected libraries.
parseExportHeader
public static parseExportHeader(Logger logger,
Module owner,
String header,
String bsn,
Version bv)
parseExtensionBundleHeader
public static Directive parseExtensionBundleHeader(String header)
throws BundleException
- Throws:
BundleException
parseDelimitedString
public static parseDelimitedString(String value,
String delim)
- Parses delimited string and returns an array containing the tokens. This
parser obeys quotes, so the delimiter character will be ignored if it is
inside of a quote. This method assumes that the quote character is not
included in the set of delimiter characters.
- Parameters:
value
- the delimited string to parse.delim
- the characters delimiting the tokens.
- Returns:
- a list of string or an empty list if there are none.
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.