CatapultServer  v0.5.0.1 (Elephant)
src/catapult/plugins/PluginLoader.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "PluginModule.h"
23 #include <vector>
24 
25 namespace catapult { namespace plugins { class PluginManager; } }
26 
27 namespace catapult { namespace plugins {
28 
30  using PluginModules = std::vector<PluginModule>;
31 
33  void LoadPluginByName(PluginManager& manager, PluginModules& modules, const std::string& directory, const std::string& name);
34 }}
CATAPULT_LOG
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
catapult::tools::nemgen::PluginLoader::m_pluginManager
plugins::PluginManager m_pluginManager
Definition: tools/nemgen/blockhashes/PluginLoader.h:49
CATAPULT_THROW_AND_LOG_0
#define CATAPULT_THROW_AND_LOG_0(TYPE, MESSAGE)
Macro used to throw a catapult exception with zero parameters.
Definition: exceptions.h:146
catapult::tools::nemgen::PluginLoader::loadAll
void loadAll()
Loads all configured plugins.
Definition: tools/nemgen/blockhashes/PluginLoader.cpp:45
catapult::config::CatapultConfiguration::BlockChain
const model::BlockChainConfiguration BlockChain
Block chain configuration.
Definition: CatapultConfiguration.h:48
catapult::tools::nemgen::PluginLoader::manager
plugins::PluginManager & manager()
Gets the plugin manager.
Definition: tools/nemgen/blockhashes/PluginLoader.cpp:41
catapult::config::UserConfiguration::PluginsDirectory
std::string PluginsDirectory
Plugins directory.
Definition: UserConfiguration.h:38
catapult::tools::nemgen::PluginLoader::loadPlugin
void loadPlugin(const std::string &pluginName)
Definition: tools/nemgen/blockhashes/PluginLoader.cpp:55
PluginModule.h
catapult::tools::nemgen::PluginLoader::m_pluginModules
std::vector< plugins::PluginModule > m_pluginModules
Definition: tools/nemgen/blockhashes/PluginLoader.h:48
catapult::plugins::plugin_load_error
Exception class that is thrown when an error is encountered while loading a plugin.
Definition: PluginExceptions.h:27
functions.h
catapult::plugins::PluginManager
A manager for registering plugins.
Definition: PluginManager.h:51
catapult::plugins::StorageConfiguration::PreferCacheDatabase
bool PreferCacheDatabase
Prefer using a database for cache storage.
Definition: PluginManager.h:41
catapult::tools::nemgen::PluginLoader::m_config
const config::CatapultConfiguration & m_config
Definition: tools/nemgen/blockhashes/PluginLoader.h:47
catapult::plugins::RegisterCoreSystem
void RegisterCoreSystem(PluginManager &manager)
Definition: CoreSystem.cpp:81
catapult::plugins::PluginModules
std::vector< PluginModule > PluginModules
Container of plugin modules.
Definition: src/catapult/plugins/PluginLoader.h:30
catapult::mongo::LoadPluginByName
void LoadPluginByName(MongoPluginManager &manager, PluginModules &modules, const std::string &directory, const std::string &name)
Loads a plugin named name with manager from directory into modules.
Definition: MongoPluginLoader.cpp:32
catapult::model::BlockChainConfiguration::Plugins
std::unordered_map< std::string, utils::ConfigurationBag > Plugins
Unparsed map of plugin configuration.
Definition: BlockChainConfiguration.h:100
catapult::config::CatapultConfiguration
Comprehensive configuration for a catapult process.
Definition: CatapultConfiguration.h:34
forwardsValidation.info
def info(*args)
Definition: forwardsValidation.py:12
CoreSystem.h
m_pluginManager
plugins::PluginManager & m_pluginManager
Definition: Broker.cpp:123
catapult::plugins::LoadPluginByName
void LoadPluginByName(PluginManager &manager, PluginModules &modules, const std::string &directory, const std::string &name)
Loads a plugin named name with manager from directory into modules.
Definition: src/catapult/plugins/PluginLoader.cpp:35
m_config
HarvestingConfiguration m_config
Definition: HarvestingService.cpp:126
CatapultConfiguration.h
catapult::config::CatapultConfiguration::User
const UserConfiguration User
User configuration.
Definition: CatapultConfiguration.h:57
catapult
Definition: AddressExtractionExtension.cpp:28
Logging.h
catapult::tools::nemgen::PluginLoader::PluginLoader
PluginLoader(const config::CatapultConfiguration &config)
Creates a loader around config.
Definition: tools/nemgen/blockhashes/PluginLoader.cpp:36
catapult::extensions::CreateStorageConfiguration
plugins::StorageConfiguration CreateStorageConfiguration(const config::CatapultConfiguration &config)
Creates plugin storage configuration from config.
Definition: PluginUtils.cpp:30
PluginExceptions.h
PluginLoader.h