Listeners¶
-
typedef std::function<void(const ServiceEvent&)>
cppmicroservices::
ServiceListener
¶ A
ServiceEvent
listener.A
ServiceListener
can be any callable object and is registered with the Framework using the BundleContext#AddServiceListener(const ServiceListener&, const std::string&) method.ServiceListener
instances are called with aServiceEvent
object when a service has been registered, unregistered, or modified.- See
- ServiceEvent
-
typedef std::function<void(const BundleEvent&)>
cppmicroservices::
BundleListener
¶ A
BundleEvent
listener.When a
BundleEvent
is fired, it is asynchronously (if threading support is enabled) delivered to aBundleListener
. The Framework deliversBundleEvent
objects to aBundleListener
in order and does not concurrently call aBundleListener
.A
BundleListener
can be any callable object and is registered with the Framework using the BundleContext#AddBundleListener(const BundleListener&) method.BundleListener
instances are called with aBundleEvent
object when a bundle has been installed, resolved, started, stopped, updated, unresolved, or uninstalled.- See
- BundleEvent
-
typedef std::function<void(const FrameworkEvent&)>
cppmicroservices::
FrameworkListener
¶ A
FrameworkEvent
listener.When a
BundleEvent
is fired, it is asynchronously (if threading support is enabled) delivered to aFrameworkListener
. The Framework deliversFrameworkEvent
objects to aFrameworkListener
in order and does not concurrently call aFrameworkListener
.A
FrameworkListener
can be any callable object and is registered with the Framework using the BundleContext#AddFrameworkListener(const FrameworkListener&) method.FrameworkListener
instances are called with aFrameworkEvent
object when a framework life-cycle event or notification message occured.- See
- FrameworkEvent