The MetaTracker track service trackers.
More...
#include <Trackers.h>
|
static std::shared_ptr< MetaTracker > | create (std::shared_ptr< celix_bundle_context_t > cCtx, std::string serviceName, std::vector< std::function< void(const ServiceTrackerInfo &)>> onTrackerCreated, std::vector< std::function< void(const ServiceTrackerInfo &)>> onTrackerDestroyed) |
| Creates a new meta tracker and opens the tracker. More...
|
|
The MetaTracker track service trackers.
- Exceptions
-
- Note
- Thread safe.
◆ create()
static std::shared_ptr<MetaTracker> celix::MetaTracker::create |
( |
std::shared_ptr< celix_bundle_context_t > |
cCtx, |
|
|
std::string |
serviceName, |
|
|
std::vector< std::function< void(const ServiceTrackerInfo &)>> |
onTrackerCreated, |
|
|
std::vector< std::function< void(const ServiceTrackerInfo &)>> |
onTrackerDestroyed |
|
) |
| |
|
inlinestatic |
Creates a new meta tracker and opens the tracker.
- Parameters
-
cCtx | The c bundle context. |
serviceName | The service name used in the service tracker to track for. |
onTrackerCreated | The callback which will be called when the tracker is created. |
onTrackerDestroyed | The callback which will be called when the tracker is destroyed. |
- Returns
- The new meta tracker as shared ptr.
- Exceptions
-
◆ open()
void celix::MetaTracker::open |
( |
| ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: