lintel 0.2.0
Loading...
Searching...
No Matches
ServerProvider.h
Go to the documentation of this file.
1#ifndef LINTEL_SERVERPROVIDER_H
2#define LINTEL_SERVERPROVIDER_H
3
6
7namespace lintel {
10{
11private:
12 std::shared_ptr<Server> m_server;
13
15 static std::shared_ptr<Server> build(const std::shared_ptr<Configuration> &configuration,
16 const std::vector<std::shared_ptr<Controller>> &controllers);
17
18public:
19 explicit ServerProvider(const std::shared_ptr<Configuration> &configuration,
20 const std::vector<std::shared_ptr<Controller>> &controllers);
21
23 const std::shared_ptr<Server> &provide();
24};
25
26}// namespace lintel
27#endif// LINTEL_SERVERPROVIDER_H
Definition ServerProvider.h:10
const std::shared_ptr< Server > & provide()
ServerProvider(const std::shared_ptr< Configuration > &configuration, const std::vector< std::shared_ptr< Controller > > &controllers)
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9