lintel 0.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lintel::BaseFeature Class Reference

#include <BaseFeature.h>

Inheritance diagram for lintel::BaseFeature:
lintel::Feature< Features::Value > lintel::FeatureInterface

Public Member Functions

 BaseFeature (std::shared_ptr< Features > features)
 
void registerTypes (lintel::di::ContainerBuilder &builder) override
 
void registerTypes (lintel::di::ContainerBuilder &builder, const std::shared_ptr< Configuration > &configuration, const std::shared_ptr< ProcessName > &processName) override
 
void initialize (std::shared_ptr< lintel::di::Container > container) override
 
- Public Member Functions inherited from lintel::Feature< Features::Value >
 Feature (Features::Value type, std::shared_ptr< Features > features)
 
virtual ~Feature ()=default
 
std::string_view getName ()
 
- Public Member Functions inherited from lintel::FeatureInterface
virtual ~FeatureInterface ()=default
 

Additional Inherited Members

- Protected Attributes inherited from lintel::Feature< Features::Value >
std::string_view m_name
 

Detailed Description

Base feature implementation that registers core library services

Constructor & Destructor Documentation

◆ BaseFeature()

lintel::BaseFeature::BaseFeature ( std::shared_ptr< Features >  features)

Construct the base feature

Parameters
featuresThe central Features manager

Member Function Documentation

◆ initialize()

void lintel::BaseFeature::initialize ( std::shared_ptr< lintel::di::Container >  container)
overridevirtual

Initialize the base feature with the resolved container

Implements lintel::Feature< Features::Value >.

◆ registerTypes() [1/2]

void lintel::BaseFeature::registerTypes ( lintel::di::ContainerBuilder &  builder)
overridevirtual

Register core library types in the DI container

Implements lintel::Feature< Features::Value >.

◆ registerTypes() [2/2]

void lintel::BaseFeature::registerTypes ( lintel::di::ContainerBuilder &  builder,
const std::shared_ptr< Configuration > &  configuration,
const std::shared_ptr< ProcessName > &  processName 
)
overridevirtual

Register core library types in the DI container.

Registers the HistoryService only in the process that the configuration explicitly declares as its owner; all other processes receive a NoopHistoryService and therefore never run a history service.

Parameters
builderthe DI container builder
configurationthe parsed application configuration
processNamethe process name of the running process

Reimplemented from lintel::FeatureInterface.


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