|
lintel 0.2.0
|
#include <StartupBuilder.h>
Public Member Functions | |
| StartupBuilder (ProcessName &&processName, std::vector< std::string > &&arguments) | |
| StartupBuilder ()=delete | |
| void | addConfigurationComponent (std::shared_ptr< Component > &&component) |
| template<typename FEATURE > | |
| void | addFeature () |
| void | disableBootstrapService () |
| void | withOutFeature (std::string_view nameOfFeature) |
| void | overrides (EnvironmentConfiguration::Environment environment, std::string value) |
| void | onShutdown () |
| void | signalThreadLoop () |
| void | start () |
Static Public Member Functions | |
| static std::shared_ptr< StartupBuilder > | with (int argc, char **argv) |
Builder for application startup lifecycle, managing features, configuration, and signal handling.
| lintel::StartupBuilder::StartupBuilder | ( | ProcessName && | processName, |
| std::vector< std::string > && | arguments | ||
| ) |
Construct a StartupBuilder with a process name and command-line arguments.
| processName | the name identifying this process |
| arguments | the command-line arguments |
|
delete |
Register a configuration component.
| component | the component to add |
Register a feature by its type. The feature is instantiated with the shared feature set.
| FEATURE | the feature type to add |
| void lintel::StartupBuilder::disableBootstrapService | ( | ) |
Disable the bootstrap service on startup.
| void lintel::StartupBuilder::onShutdown | ( | ) |
Perform shutdown logic, notifying all registered services.
| void lintel::StartupBuilder::overrides | ( | EnvironmentConfiguration::Environment | environment, |
| std::string | value | ||
| ) |
Override an environment configuration value.
| environment | the environment to override |
| value | the override value |
| void lintel::StartupBuilder::signalThreadLoop | ( | ) |
Internal signal-handling thread loop.
| void lintel::StartupBuilder::start | ( | ) |
Start all features, services, and begin the application main loop.
|
static |
Factory method to create a StartupBuilder from argc/argv.
| argc | argument count |
| argv | argument vector |
| void lintel::StartupBuilder::withOutFeature | ( | std::string_view | nameOfFeature | ) |
Exclude a named feature from the startup sequence.
| nameOfFeature | the feature name to exclude |