src: added language package classes and moved indexer instantiation there

This commit is contained in:
mlangkabel
2018-04-27 18:02:32 +02:00
parent a7ef02459a
commit 9af5780c12
23 changed files with 154 additions and 188 deletions
@@ -1,11 +1,10 @@
#include "InterprocessIndexer.h"
#include "utility/file/FileRegister.h"
#include "utility/logging/logging.h"
#include "data/indexer/IndexerCommand.h"
#include "data/indexer/IndexerComposite.h"
#include "data/indexer/IndexerFactory.h"
#include "utility/file/FileRegister.h"
#include "utility/logging/logging.h"
#include "LanguagePackageManager.h"
InterprocessIndexer::InterprocessIndexer(const std::string& uuid, Id processId)
: m_interprocessIndexerCommandManager(uuid, processId, false)
@@ -25,7 +24,7 @@ void InterprocessIndexer::work()
try
{
LOG_INFO(std::to_wstring(m_processId) + L" starting up indexer");
std::shared_ptr<IndexerBase> indexer = IndexerFactory::getInstance()->createCompositeIndexerForAllRegisteredModules();
std::shared_ptr<IndexerBase> indexer = LanguagePackageManager::getInstance()->instantiateSupportedIndexers();
while (std::shared_ptr<IndexerCommand> indexerCommand = m_interprocessIndexerCommandManager.popIndexerCommand())
{