plugify 1.2.8
Loading...
Searching...
No Matches
Public Member Functions | List of all members
plugify::ServiceLocator::ServiceBuilder Class Reference

Public Member Functions

 ServiceBuilder (ServiceLocator &locator)
 
template<typename Interface , typename Implementation = Interface>
ServiceBuilderAddSingleton ()
 
template<typename Interface >
ServiceBuilderAddSingleton (std::shared_ptr< Interface > instance)
 
template<typename Interface , typename Implementation = Interface>
ServiceBuilderAddTransient ()
 
template<typename Interface >
ServiceBuilderAddFactory (std::function< std::shared_ptr< Interface >()> factory)
 

Detailed Description

Definition at line 210 of file service_locator.hpp.

Member Function Documentation

◆ AddFactory()

template<typename Interface >
ServiceBuilder & plugify::ServiceLocator::ServiceBuilder::AddFactory ( std::function< std::shared_ptr< Interface >()>  factory)
inline

Definition at line 234 of file service_locator.hpp.

◆ AddSingleton() [1/2]

template<typename Interface , typename Implementation = Interface>
ServiceBuilder & plugify::ServiceLocator::ServiceBuilder::AddSingleton ( )
inline

Definition at line 216 of file service_locator.hpp.

◆ AddSingleton() [2/2]

template<typename Interface >
ServiceBuilder & plugify::ServiceLocator::ServiceBuilder::AddSingleton ( std::shared_ptr< Interface >  instance)
inline

Definition at line 222 of file service_locator.hpp.

◆ AddTransient()

template<typename Interface , typename Implementation = Interface>
ServiceBuilder & plugify::ServiceLocator::ServiceBuilder::AddTransient ( )
inline

Definition at line 228 of file service_locator.hpp.


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