m_bundle = bundle;
m_id = id;
m_headerMap = headerMap;
m_content = content;
ManifestParser mp = new ManifestParser(
((BundleImpl) bundle).getFramework().getLogger(),
((BundleImpl) bundle).getFramework().getConfig(),
this,
m_headerMap);
// Record some of the parsed metadata. Note, if this is an extension
// bundle it's exports are removed, since they will be added to the
// system bundle directly later on.
m_manifestVersion = mp.getManifestVersion();
m_version = mp.getBundleVersion();
m_declaredCaps = mp.isExtension() ? Collections.EMPTY_LIST : mp.getCapabilities();
m_declaredReqs = mp.getRequirements();
m_declaredNativeLibs = mp.getLibraries();
m_declaredActivationPolicy = mp.getActivationPolicy();
m_activationExcludes = (mp.getActivationExcludeDirective() == null)
? null
: ManifestParser.parseDelimitedString(mp.getActivationExcludeDirective(), ",");
m_activationIncludes = (mp.getActivationIncludeDirective() == null)
? null
: ManifestParser.parseDelimitedString(mp.getActivationIncludeDirective(), ",");
m_symbolicName = mp.getSymbolicName();
m_isExtension = mp.isExtension();
m_isFragment = m_headerMap.containsKey(Constants.FRAGMENT_HOST);
}