diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-10-01 21:15:43 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-10-01 21:39:53 +0100 |
commit | 5116ce6918721ae244c810a9144ed42e1560ac19 (patch) | |
tree | 3c996e45dccbf2000a2c041f7899e8af6bc9ed26 /project2/sql | |
parent | Merge Plugable and ComponentLoader into new LifeCycle class (diff) | |
download | project2-5116ce6918721ae244c810a9144ed42e1560ac19.tar.bz2 project2-5116ce6918721ae244c810a9144ed42e1560ac19.tar.xz project2-5116ce6918721ae244c810a9144ed42e1560ac19.zip |
Rename some of the things badly named Loader
Diffstat (limited to 'project2/sql')
-rw-r--r-- | project2/sql/rdbmsDataSource.cpp | 4 | ||||
-rw-r--r-- | project2/sql/rdbmsDataSource.h | 2 | ||||
-rw-r--r-- | project2/sql/sqlCache.cpp | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/project2/sql/rdbmsDataSource.cpp b/project2/sql/rdbmsDataSource.cpp index aa5bee4..46e97a8 100644 --- a/project2/sql/rdbmsDataSource.cpp +++ b/project2/sql/rdbmsDataSource.cpp @@ -7,8 +7,8 @@ #define LOCK(l) std::lock_guard<std::mutex> _lock##l(l) -/// Specialized ElementLoader for instances of RdbmsDataSource; handles persistent DB connections -class RdbmsDataSourceLoader : public LifeCycle { +/// Life cycle component for handling closure of persistent DB connections +class RdbmsDataSourceFactory : public LifeCycle { public: void onIdle() override { diff --git a/project2/sql/rdbmsDataSource.h b/project2/sql/rdbmsDataSource.h index 4b7763f..979cec6 100644 --- a/project2/sql/rdbmsDataSource.h +++ b/project2/sql/rdbmsDataSource.h @@ -94,7 +94,7 @@ class RdbmsDataSource : public DataSource { typedef std::set<ChangedDSN> ChangedDSNs; static ChangedDSNs changedDSNs; - friend class RdbmsDataSourceLoader; + friend class RdbmsDataSourceFactory; }; #endif diff --git a/project2/sql/sqlCache.cpp b/project2/sql/sqlCache.cpp index 24a6b80..d20a8fc 100644 --- a/project2/sql/sqlCache.cpp +++ b/project2/sql/sqlCache.cpp @@ -253,7 +253,7 @@ class SqlCache : public RowSetCache { INITOPTIONS; private: - friend class CustomSqlCacheLoader; + friend class CustomSqlCacheFactory; const RdbmsDataSource * db; static std::string DataSource; static std::string HeaderTable; @@ -264,7 +264,7 @@ std::string SqlCache::DataSource; std::string SqlCache::HeaderTable; time_t SqlCache::CacheLife; -class CustomSqlCacheLoader : public RowSetCacheFactory::For<SqlCache>, public LifeCycle { +class CustomSqlCacheFactory : public RowSetCacheFactory::For<SqlCache>, public LifeCycle { public: void onIdle() override { @@ -284,7 +284,7 @@ class CustomSqlCacheLoader : public RowSetCacheFactory::For<SqlCache>, public Li } } }; -NAMEDPLUGIN("sqlcache", CustomSqlCacheLoader, RowSetCacheFactory); +NAMEDPLUGIN("sqlcache", CustomSqlCacheFactory, RowSetCacheFactory); DECLARE_OPTIONS(SqlCache, "SQL Cache options") ("cache.sql.dataSource", Options::value(&DataSource), |