Library: OSP
Package: Bundle
Header: Poco/OSP/BundleManifest.h
The BundleManifest class parses and stores the manifest of a bundle.
Direct Base Classes: Poco::RefCountedObject
All Base Classes: Poco::RefCountedObject
Member Functions: activatorClass, activatorLibrary, copyright, extendedBundle, lazyStart, name, parseActivator, parseManifest, parseRequiredBundles, rawManifest, requiredBundles, runLevel, symbolicName, vendor, version
Inherited Functions: duplicate, referenceCount, release
typedef std::vector < Dependency > Dependencies;
typedef Poco::AutoPtr < BundleManifest > Ptr;
BundleManifest(
std::istream & istr
);
Creates the BundleManifest by parsing the META-INF/manifest.mf file.
~BundleManifest();
Destroys the BundleManifest.
const std::string & activatorClass() const;
Returns the class name of the bundle's activator, or an empty string if the manifest does not specify an activator.
const std::string & activatorLibrary() const;
Returns the name of the library containing the bundle's activator class, or an empty string if the manifest does not specify an activator library.
const std::string & copyright() const;
Returns the bundle's copyright information, or an empty string if no copyright information has been specified in the pManifest->
const std::string & extendedBundle() const;
Returns the name of the bundle this bundle extends, or an empty string if the bundle is not an extension bundle.
bool lazyStart() const;
Returns true if lazy startup has been specified for the bundle.
const std::string & name() const;
Returns the name of the bundle.
Poco::Util::AbstractConfiguration & rawManifest() const;
Returns a reference to the configuration containing the raw manifest data.
const Dependencies & requiredBundles() const;
Returns a vector containing information about all bundles required by this bundle.
const std::string & runLevel() const;
Returns the bundle's run level.
If the bundle does not specify a run level, returns the default "999-user".
const std::string & symbolicName() const;
Returns the symbolic name of the bundle.
const std::string & vendor() const;
Returns the bundle's vendor name, or an empty string if no vendor name has been specified in the pManifest->
const Version & version() const;
Returns the version of the bundle.
void parseActivator(
const std::string & activator
);
Parses the Bundle-Activator property.
void parseManifest();
Parses the bundle's manifest file.
void parseRequiredBundles(
const std::string & requiredBundles
);
Parses the Required-Bundles property.
static const std::string BUNDLE_ACTIVATOR;
static const std::string BUNDLE_CERTIFICATE;
static const std::string BUNDLE_COPYRIGHT;
static const std::string BUNDLE_LAZYSTART;
static const std::string BUNDLE_NAME;
static const std::string BUNDLE_RUNLEVEL;
static const std::string BUNDLE_SYMBOLICNAME;
static const std::string BUNDLE_VENDOR;
static const std::string BUNDLE_VERSION;
static const std::string DEFAULT_RUNLEVEL;
static const std::string EXTENDS_BUNDLE;
static const std::string MANIFEST_VERSION;
static const std::string REQUIRE_BUNDLE;
static const std::string VERSION;