diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-09-30 23:48:05 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-09-30 23:48:05 +0100 |
commit | d10b8914aeb4f297d6b6deca2408cd81b1adad08 (patch) | |
tree | 25fb41739387671e8e7a183778686ffdc5a29b4c /project2/sql/rdbmsDataSource.cpp | |
parent | Remove NoOutputExecute for not being a thing (diff) | |
download | project2-d10b8914aeb4f297d6b6deca2408cd81b1adad08.tar.bz2 project2-d10b8914aeb4f297d6b6deca2408cd81b1adad08.tar.xz project2-d10b8914aeb4f297d6b6deca2408cd81b1adad08.zip |
Use AdHoc plugins for scriptable things and remove legacy plugin support
Diffstat (limited to 'project2/sql/rdbmsDataSource.cpp')
-rw-r--r-- | project2/sql/rdbmsDataSource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/project2/sql/rdbmsDataSource.cpp b/project2/sql/rdbmsDataSource.cpp index e1091a3..9b295d3 100644 --- a/project2/sql/rdbmsDataSource.cpp +++ b/project2/sql/rdbmsDataSource.cpp @@ -8,7 +8,7 @@ #define LOCK(l) std::lock_guard<std::mutex> _lock##l(l) /// Specialized ElementLoader for instances of RdbmsDataSource; handles persistent DB connections -class RdbmsDataSourceLoader : public ElementLoader::For<RdbmsDataSource> { +class RdbmsDataSourceLoader : public ComponentLoader { public: void onIdle() override { @@ -32,7 +32,7 @@ class RdbmsDataSourceLoader : public ElementLoader::For<RdbmsDataSource> { RdbmsDataSource::changedDSNs.clear(); } }; -DECLARE_CUSTOM_LOADER("rdbmsdatasource", RdbmsDataSourceLoader); +NAMEDFACTORY("rdbmsdatasource", RdbmsDataSource, DataSourceFactory); RdbmsDataSource::DBHosts RdbmsDataSource::dbhosts; RdbmsDataSource::FailedHosts RdbmsDataSource::failedhosts; |