From 3d10df890ef9df19fffa855d9ceb04c1a8f35b96 Mon Sep 17 00:00:00 2001 From: collett Date: Tue, 7 Feb 2023 06:34:54 +0900 Subject: [PATCH] keep the original comment --- src/common/Service.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/common/Service.h b/src/common/Service.h index 01d4053b..21913bd1 100644 --- a/src/common/Service.h +++ b/src/common/Service.h @@ -11,8 +11,16 @@ namespace Sapphire::Common { /** - * @brief Replacement of Sapphire's Service locator which is not working when compiling under Visual Studio, keeping its api. - */ + * @brief Service locator, nothing more. + * + * A service locator can be used to do what it promises: locate services.
+ * Usually service locators are tightly bound to the services they expose and + * thus it's hard to define a general purpose class to do that. This template + * based implementation tries to fill the gap and to get rid of the burden of + * defining a different specific locator for each application. + * + * Implementaion of the Service locator is replaced with a workaround for Visual Studio, api unchanged. + */ class ServiceContainer {