Apache Celix
2.3.0
An implementation of the OSGi specification adapted to C and C++
|
An installed bundle in the Celix framework. More...
#include <Bundle.h>
Public Member Functions | |
Bundle (celix_bundle_t *_cBnd) | |
long | getId () const |
get the bundle id. More... | |
std::string | getEntry (std::string_view path) const |
Get a use-able entry path for the provided relative path to a bundle resource. More... | |
std::string | getManifestValue (std::string_view attribute) const |
Get a manifest attribute value from the bundle manifest. More... | |
std::string | getSymbolicName () const |
the symbolic name of the bundle. More... | |
std::string | getName () const |
The name of the bundle. More... | |
std::string | getGroup () const |
The group of the bundle. More... | |
std::string | getDescription () const |
The description of the bundle. More... | |
celix::BundleState | getState () const |
The current bundle state. More... | |
bool | isSystemBundle () const |
whether the bundle is the system (framework) bundle More... | |
An installed bundle in the Celix framework.
Each bundle installed in the Celix framework must have an associated Bundle object. A bundle must have a unique identity, a long, chosen by the Celix framework.
std::string_view
values must be null terminated strings.
|
inlineexplicit |
|
inline |
The description of the bundle.
|
inline |
Get a use-able entry path for the provided relative path to a bundle resource.
For example if there is a resource entry in the bundle at path 'META-INF/descriptors/foo.descriptor` this call will return a relative path to the extracted location of the bundle resource, e.g.: .cache/bundle5/version0.0/META-INF/descriptors/foo.descriptor
path | The relative path to a bundle resource |
|
inline |
The group of the bundle.
|
inline |
get the bundle id.
|
inline |
Get a manifest attribute value from the bundle manifest.
attribute | The attribute to get the value from. |
|
inline |
The name of the bundle.
|
inline |
The current bundle state.
|
inline |
the symbolic name of the bundle.
|
inline |
whether the bundle is the system (framework) bundle