FrameworkFactory

class cppmicroservices::FrameworkFactory

A factory for creating Framework instances.

Remark
This class is thread-safe.

Public Functions

Framework NewFramework(const FrameworkConfiguration &configuration, std::ostream *logger = nullptr)

Create a new Framework instance.

Return
A new, configured Framework instance.
Parameters
  • configuration: The framework properties to configure the new framework instance. If framework properties are not provided by the configuration argument, the created framework instance will use a reasonable default configuration.
  • logger: Any ostream object which will receieve redirected debug log output.

Framework NewFramework()

Create a new Framework instance.

This is the same as calling

NewFramework(FrameworkConfiguration()) 
.

Return
A new, configured Framework instance.

Framework NewFramework(const std::map<std::string, Any> &configuration, std::ostream *logger = nullptr)

Create a new Framework instance.

Return
A new, configured Framework instance.