public class ManifestParser extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CLAUSE_ATTRIBUTES_INDEX |
static int |
CLAUSE_DIRECTIVES_INDEX |
static int |
CLAUSE_PATHS_INDEX |
Constructor and Description |
---|
ManifestParser(Logger logger,
Map configMap,
Module owner,
Map headerMap) |
Modifier and Type | Method and Description |
---|---|
String |
getActivationExcludeDirective() |
String |
getActivationIncludeDirective() |
int |
getActivationPolicy() |
org.osgi.framework.Version |
getBundleVersion() |
List<Capability> |
getCapabilities() |
List<Requirement> |
getDynamicRequirements() |
List<R4Library> |
getLibraries()
This method returns the selected native library metadata from
the manifest.
|
List<R4LibraryClause> |
getLibraryClauses() |
String |
getManifestVersion() |
List<Requirement> |
getRequirements() |
String |
getSymbolicName() |
boolean |
isExtension() |
static List<String> |
parseDelimitedString(String value,
String delim)
Parses delimited string and returns an array containing the tokens.
|
static List<Capability> |
parseExportHeader(Logger logger,
Module owner,
String header,
String bsn,
org.osgi.framework.Version bv) |
static Directive |
parseExtensionBundleHeader(String header) |
public static final int CLAUSE_PATHS_INDEX
public static final int CLAUSE_DIRECTIVES_INDEX
public static final int CLAUSE_ATTRIBUTES_INDEX
public String getManifestVersion()
public int getActivationPolicy()
public String getActivationIncludeDirective()
public String getActivationExcludeDirective()
public boolean isExtension()
public String getSymbolicName()
public org.osgi.framework.Version getBundleVersion()
public List<Capability> getCapabilities()
public List<Requirement> getRequirements()
public List<Requirement> getDynamicRequirements()
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<Capability> parseExportHeader(Logger logger, Module owner, String header, String bsn, org.osgi.framework.Version bv)
public static Directive parseExtensionBundleHeader(String header) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
public static List<String> parseDelimitedString(String value, String delim)
value
- the delimited string to parse.delim
- the characters delimiting the tokens.Copyright © 2013 JBoss by Red Hat. All Rights Reserved.