Cleanup of DmActivator class
namespace celix { namespace dm {
+ /**
+ * This class is considered deprecated. Use CELIX_CXX_GEN_BUNDLE_ACTIVATOR instead.
+ */
class DmActivator {
public:
DmActivator(DependencyManager& m) : mng(m), ctx{m.bundleContext()} {}
@@ -69,19 +72,14 @@ namespace celix { namespace dm {
int start() {
celix_status_t status = CELIX_SUCCESS;
this->init();
- this->mng.start();
-
+ this->mng.build();
return status;
}
int stop() {
celix_status_t status = CELIX_SUCCESS;
-
this->deinit();
-
- // Remove all components
- celix_dependencyManager_removeAllComponents(this->mng.cDependencyManager());
-
+ this->mng.clear();
return status;
}
