Fluent builder API to track service trackers.
More...
#include <TrackerBuilders.h>
Fluent builder API to track service trackers.
- See also
- See celix::BundleContext::trackServiceTrackers for more info.
- Note
- Not thread safe.
◆ MetaTrackerBuilder() [1/2]
celix::MetaTrackerBuilder::MetaTrackerBuilder |
( |
std::shared_ptr< celix_bundle_context_t > |
_cCtx, |
|
|
std::string_view |
_serviceName |
|
) |
| |
|
inlineexplicit |
◆ MetaTrackerBuilder() [2/2]
◆ addOnTrackerCreatedCallback()
Adds a "on tracker created" callback function, which will be called - on the Celix event thread - when a new service tracker has been created.
The "on tracker created" callback function has 1 arguments: A const reference to a ServiceTrackerInfo object.
◆ addOnTrackerDestroyedCallback()
Adds a "on tracker destroyed" callback function, which will be called - on the Celix event thread - when a new service tracker has been destroyed.
The "on tracker destroyed" callback function has 1 arguments: A const reference to a ServiceTrackerInfo object.
◆ build()
std::shared_ptr<MetaTracker> celix::MetaTrackerBuilder::build |
( |
| ) |
|
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ BundleContext
The documentation for this class was generated from the following file: