Apache Celix
2.4.0
Apache Celix is a framework for C, C++14 and C++17 to develop dynamic modular software applications using component and in-process service-oriented programming.
|
A Celix framework instance. A framework is also known as a system bundle. More...
#include <Framework.h>
Public Member Functions | |
Framework (std::shared_ptr< celix::BundleContext > _fwCtx, celix_framework_t *_cFw) | |
std::string | getUUID () const |
Get the framework UUID. More... | |
std::shared_ptr< celix::BundleContext > | getFrameworkBundleContext () const |
Get the bundle context for the framework. More... | |
long | fireGenericEvent (long bndId, const char *eventName, std::function< void()> processEventCallback, long eventId=-1) |
Fire a generic Celix framework event. More... | |
void | waitForStop () |
Block until the framework is stopped. More... | |
void | waitForEvent (long eventId) |
Wait until all Celix event for this framework are completed. More... | |
celix_framework_t * | getCFramework () const |
Get the C framework. More... | |
A Celix framework instance. A framework is also known as a system bundle.
Celix framework instances are created using a FrameworkFactory.
|
inline |
|
inline |
Fire a generic Celix framework event.
The event will be added to the event loop and handled on the event loop thread.
if bndId >=0 the bundle usage count will be increased while the event is not yet processed or finished processing. The name is expected to be const char* valid during til the event is finished processing.
if eventId >=0 this will be used, otherwise a new event id will be generated.
|
inline |
Get the C framework.
|
inline |
Get the bundle context for the framework.
|
inline |
Get the framework UUID.
|
inline |
Wait until all Celix event for this framework are completed.
|
inline |
Block until the framework is stopped.