Library: OSP
Package: Bundle
Header: Poco/OSP/BundleManifest.h
Description
The BundleManifest class parses and stores the manifest of a bundle.
Inheritance
Direct Base Classes: Poco::RefCountedObject
All Base Classes: Poco::RefCountedObject
Member Summary
Member Functions: activatorClass, activatorLibrary, copyright, extendedBundle, lazyStart, name, parseActivator, parseManifest, parseRequiredBundles, rawManifest, requiredBundles, runLevel, symbolicName, vendor, version
Inherited Functions: duplicate, referenceCount, release
Nested Classes
struct Dependency
Types
ConstPtr
Dependencies
typedef std::vector < Dependency > Dependencies;
Ptr
typedef Poco::AutoPtr < BundleManifest > Ptr;
Constructors
BundleManifest
BundleManifest(
std::istream & istr
);
Creates the BundleManifest by parsing the META-INF/manifest.mf file.
Destructor
~BundleManifest
~BundleManifest();
Destroys the BundleManifest.
Member Functions
activatorClass
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.
activatorLibrary
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.
copyright
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->
extendedBundle
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.
lazyStart
bool lazyStart() const;
Returns true if lazy startup has been specified for the bundle.
name
const std::string & name() const;
Returns the name of the bundle.
rawManifest
Poco::Util::AbstractConfiguration & rawManifest() const;
Returns a reference to the configuration containing the raw manifest data.
requiredBundles
const Dependencies & requiredBundles() const;
Returns a vector containing information about all bundles required by this bundle.
runLevel
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".
symbolicName
const std::string & symbolicName() const;
Returns the symbolic name of the bundle.
vendor
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->
version
const Version & version() const;
Returns the version of the bundle.
parseActivator
void parseActivator(
const std::string & activator
);
Parses the Bundle-Activator property.
parseManifest
void parseManifest();
Parses the bundle's manifest file.
parseRequiredBundles
void parseRequiredBundles(
const std::string & requiredBundles
);
Parses the Required-Bundles property.
Variables
BUNDLE_ACTIVATOR
static const std::string BUNDLE_ACTIVATOR;
BUNDLE_CERTIFICATE
static const std::string BUNDLE_CERTIFICATE;
BUNDLE_COPYRIGHT
static const std::string BUNDLE_COPYRIGHT;
BUNDLE_LAZYSTART
static const std::string BUNDLE_LAZYSTART;
BUNDLE_NAME
static const std::string BUNDLE_NAME;
BUNDLE_RUNLEVEL
static const std::string BUNDLE_RUNLEVEL;
BUNDLE_SYMBOLICNAME
static const std::string BUNDLE_SYMBOLICNAME;
BUNDLE_VENDOR
static const std::string BUNDLE_VENDOR;
BUNDLE_VERSION
static const std::string BUNDLE_VERSION;
DEFAULT_RUNLEVEL
static const std::string DEFAULT_RUNLEVEL;
EXTENDS_BUNDLE
static const std::string EXTENDS_BUNDLE;
MANIFEST_VERSION
static const std::string MANIFEST_VERSION;
REQUIRE_BUNDLE
static const std::string REQUIRE_BUNDLE;
VERSION
static const std::string VERSION;