Apache Celix
2.3.0
An implementation of the OSGi specification adapted to C and C++
|
Go to the documentation of this file.
49 explicit Bundle(celix_bundle_t* _cBnd) : cBnd{_cBnd, [](celix_bundle_t*){}} {}
67 [[nodiscard]] std::string
getEntry(std::string_view path)
const {
70 if (entry !=
nullptr) {
71 result = std::string{entry};
84 return header ==
nullptr ? std::string{} : std::string{header};
97 [[nodiscard]] std::string
getName()
const {
121 case OSGI_FRAMEWORK_BUNDLE_UNINSTALLED:
123 case OSGI_FRAMEWORK_BUNDLE_INSTALLED:
125 case OSGI_FRAMEWORK_BUNDLE_RESOLVED:
127 case OSGI_FRAMEWORK_BUNDLE_STARTING:
129 case OSGI_FRAMEWORK_BUNDLE_STOPPING:
131 case OSGI_FRAMEWORK_BUNDLE_ACTIVE:
146 const std::shared_ptr<celix_bundle_t> cBnd;
const char * celix_bundle_getDescription(const celix_bundle_t *bnd)
Returns the description of the bundle. Note the return value is valid as long as the bundle is instal...
BundleState
Definition: Bundle.h:28
std::string getEntry(std::string_view path) const
Get a use-able entry path for the provided relative path to a bundle resource.
Definition: Bundle.h:67
Bundle(celix_bundle_t *_cBnd)
Definition: Bundle.h:49
char * celix_bundle_getEntry(const celix_bundle_t *bnd, const char *path)
std::string getDescription() const
The description of the bundle.
Definition: Bundle.h:111
celix::BundleState getState() const
The current bundle state.
Definition: Bundle.h:118
bool isSystemBundle() const
whether the bundle is the system (framework) bundle
Definition: Bundle.h:142
An installed bundle in the Celix framework.
Definition: Bundle.h:47
celix_bundle_state_e celix_bundle_getState(const celix_bundle_t *bnd)
Returns the bundle state.
bool celix_bundle_isSystemBundle(const celix_bundle_t *bnd)
Returns whether the bundle is the system bundle.
const char * celix_bundle_getSymbolicName(const celix_bundle_t *bnd)
Returns the symbolic name of the bundle. Note the return value is valid as long as the bundle is inst...
long getId() const
get the bundle id.
Definition: Bundle.h:55
std::string getManifestValue(std::string_view attribute) const
Get a manifest attribute value from the bundle manifest.
Definition: Bundle.h:82
std::string getGroup() const
The group of the bundle.
Definition: Bundle.h:104
const char * celix_bundle_getGroup(const celix_bundle_t *bnd)
Returns the group of the bundle. Groups are used to order bundles. Note the return value is valid as ...
std::string getSymbolicName() const
the symbolic name of the bundle.
Definition: Bundle.h:90
long celix_bundle_getId(const celix_bundle_t *bnd)
Returns the bundle id.
const char * celix_bundle_getName(const celix_bundle_t *bnd)
Returns the name of the bundle. Note the return value is valid as long as the bundle is installed.
std::string getName() const
The name of the bundle.
Definition: Bundle.h:97
const char * celix_bundle_getManifestValue(const celix_bundle_t *bnd, const char *attribute)
Get a manifest attribute value from the bundle manifest.