ServiceDescriptor#
-
class ServiceDescriptor#
Describes Service.
Public Types
-
using Ptr = std::unique_ptr<ServiceDescriptor>#
Public Functions
-
ServiceDescriptor(TypeId serviceTypeId, ServiceLifeTime lifetime, IServiceFactory::Ptr implementationFactory)#
Construct a new service descriptor object.
implementationFactory cannot be null, otherwise construcor will throw exception
- Throws:
NullPointnerException – if implementationFactory is null
-
ServiceDescriptor(const ServiceDescriptor &other)#
Construct a new service descriptor copy.
Note that implementation factory must be clonable
-
ServiceDescriptor(ServiceDescriptor&&) = default#
Construct a new service descriptor by move.
-
ServiceDescriptor &operator=(const ServiceDescriptor &other)#
Assigns service descriptor.
Note that implementation factory must be clonable
-
ServiceDescriptor &operator=(ServiceDescriptor &&other) = default#
Assigns service descriptor by move.
-
const ServiceLifeTime &getLifeTime() const#
Get the lifetime object.
-
const IServiceFactory &getImplementationFactory() const#
Get the service implementation factory.
-
using Ptr = std::unique_ptr<ServiceDescriptor>#