ServiceCtorFactory#

template<class T>
class ServiceCtorFactory : public sb::di::IServiceFactory#

Public Types

using Ptr = std::unique_ptr<ServiceCtorFactory>#

Public Functions

inline virtual TypeId getServiceTypeId() const#

Get the TypeId of the service instances that the factory will create.

inline virtual IServiceInstance::Ptr createInstance(IServiceProvider &serviceProvider) const#

Create a service instance object.

inline virtual IServiceFactory::Ptr clone()#

Returns copy of self factory.

Note that IServiceFactory implementation must be copyable