CatapultServer  v0.5.0.1 (Elephant)
catapult::extensions::ExtensionManager Class Reference

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
 

Detailed Description

A manager for registering extensions.

Member Typedef Documentation

◆ NetworkTimeSupplier

Supplier that returns the network time.

Constructor & Destructor Documentation

◆ ExtensionManager()

catapult::extensions::ExtensionManager::ExtensionManager ( )

Creates a manager.

Member Function Documentation

◆ addServiceRegistrar()

void catapult::extensions::ExtensionManager::addServiceRegistrar ( std::unique_ptr< ServiceRegistrar > &&  pServiceRegistrar)

Adds a service registrar (pServiceRegistrar).

◆ networkTimeSupplier()

ExtensionManager::NetworkTimeSupplier catapult::extensions::ExtensionManager::networkTimeSupplier ( ) const

Gets the network time supplier.

Here is the call graph for this function:

◆ registerServices()

void catapult::extensions::ExtensionManager::registerServices ( ServiceLocator locator,
ServiceState state 
)

Registers all services by forwarding locator and state.

Here is the call graph for this function:

◆ registerSystemPlugin()

void catapult::extensions::ExtensionManager::registerSystemPlugin ( const std::string &  name)

Registers a system plugin with name.

◆ setNetworkTimeSupplier()

void catapult::extensions::ExtensionManager::setNetworkTimeSupplier ( const NetworkTimeSupplier supplier)

Registers a network time supplier.

Here is the call graph for this function:

◆ systemPluginNames()

const std::vector< std::string > & catapult::extensions::ExtensionManager::systemPluginNames ( ) const

Gets the system plugin names.

Member Data Documentation

◆ m_networkTimeSupplier

NetworkTimeSupplier catapult::extensions::ExtensionManager::m_networkTimeSupplier
private

◆ m_serviceRegistrars

std::vector<std::unique_ptr<ServiceRegistrar> > catapult::extensions::ExtensionManager::m_serviceRegistrars
private

◆ m_systemPluginNames

std::vector<std::string> catapult::extensions::ExtensionManager::m_systemPluginNames
private

The documentation for this class was generated from the following files: