Closed k7sleeper closed 10 years ago
Correct, the providing module must be inside the service namespace (or subnamespace). So yes, you can define a service without any namespace, in this case any module can provide it. But I would avoid to do that unless it's really necessary, service namespacing was created to enhance readability of the code (you know straight away where to find all the modules providing a namespace) and performances (scatter only needs to load/scan a namespace to invoke the service).
Given a module
a/b/c/module1
. Is it allowed formodule1
to provide a serviceapp/setUp
or must the provided service namespace be a substring ofa/b/c/module1
?Is it also allowed to have an empty service namespace?