The BundleTracker class tracks bundles.
More...
#include <Trackers.h>
|
static std::shared_ptr< BundleTracker > | create (std::shared_ptr< celix_bundle_context_t > cCtx, bool includeFrameworkBundle, std::vector< std::function< void(const celix::Bundle &)>> onInstallCallbacks, std::vector< std::function< void(const celix::Bundle &)>> onStartCallbacks, std::vector< std::function< void(const celix::Bundle &)>> onStopCallbacks) |
| Creates a new bundle tracker and opens the tracker. More...
|
|
The BundleTracker class tracks bundles.
- Note
- Thread safe.
◆ create()
static std::shared_ptr<BundleTracker> celix::BundleTracker::create |
( |
std::shared_ptr< celix_bundle_context_t > |
cCtx, |
|
|
bool |
includeFrameworkBundle, |
|
|
std::vector< std::function< void(const celix::Bundle &)>> |
onInstallCallbacks, |
|
|
std::vector< std::function< void(const celix::Bundle &)>> |
onStartCallbacks, |
|
|
std::vector< std::function< void(const celix::Bundle &)>> |
onStopCallbacks |
|
) |
| |
|
inlinestatic |
Creates a new bundle tracker and opens the tracker.
- Parameters
-
cCtx | The c bundle context. |
includeFrameworkBundle | Whether the Celix framework bundle should be included in the callbacks. |
onInstallCallbacks | The callback which is called for every bundle being installed (also called retroactively for already installed bundles). |
onStartCallbacks | The callback which is called for every bundle being started (also called retroactively for already started bundles). |
onStopCallbacks | The callback which is called for every bundle being stopped (also called retroactively for already stopped bundles). |
- Returns
- The new bundle tracker as shared ptr.
- Exceptions
-
◆ open()
void celix::BundleTracker::open |
( |
| ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: