CatapultServer
v0.5.0.1 (Elephant)
|
A manager for registering extensions. More...
Public Types | |
using | NetworkTimeSupplier = supplier< Timestamp > |
Supplier that returns the network time. More... | |
Public Member Functions | |
ExtensionManager () | |
Creates a manager. More... | |
void | registerSystemPlugin (const std::string &name) |
Registers a system plugin with name. More... | |
void | setNetworkTimeSupplier (const NetworkTimeSupplier &supplier) |
Registers a network time supplier. More... | |
void | addServiceRegistrar (std::unique_ptr< ServiceRegistrar > &&pServiceRegistrar) |
Adds a service registrar (pServiceRegistrar). More... | |
const std::vector< std::string > & | systemPluginNames () const |
Gets the system plugin names. More... | |
NetworkTimeSupplier | networkTimeSupplier () const |
Gets the network time supplier. More... | |
void | registerServices (ServiceLocator &locator, ServiceState &state) |
Registers all services by forwarding locator and state. More... | |
Private Attributes | |
std::vector< std::string > | m_systemPluginNames |
NetworkTimeSupplier | m_networkTimeSupplier |
std::vector< std::unique_ptr< ServiceRegistrar > > | m_serviceRegistrars |
A manager for registering extensions.
Supplier that returns the network time.
catapult::extensions::ExtensionManager::ExtensionManager | ( | ) |
Creates a manager.
void catapult::extensions::ExtensionManager::addServiceRegistrar | ( | std::unique_ptr< ServiceRegistrar > && | pServiceRegistrar | ) |
Adds a service registrar (pServiceRegistrar).
ExtensionManager::NetworkTimeSupplier catapult::extensions::ExtensionManager::networkTimeSupplier | ( | ) | const |
Gets the network time supplier.
void catapult::extensions::ExtensionManager::registerServices | ( | ServiceLocator & | locator, |
ServiceState & | state | ||
) |
Registers all services by forwarding locator and state.
void catapult::extensions::ExtensionManager::registerSystemPlugin | ( | const std::string & | name | ) |
Registers a system plugin with name.
void catapult::extensions::ExtensionManager::setNetworkTimeSupplier | ( | const NetworkTimeSupplier & | supplier | ) |
Registers a network time supplier.
const std::vector< std::string > & catapult::extensions::ExtensionManager::systemPluginNames | ( | ) | const |
Gets the system plugin names.
|
private |
|
private |
|
private |