componentScan

Scan a set of modules and register all public objects that are annotated with @component annotation.

Due to limitations of D language currently it is impossible to recursively scan all public imports of a module to register all depencies of a package. Each particular module should be specified in order to register dependencies. Note: An object will be registered in storage only in case when it is annotated with @component annotation. In case when no @component annotation is found, object is not registered in storage.

Parameters

M

current module to scan.

V

rest set of modules waiting for scan.

storage Storage!(ObjectFactory, string)

the storage where to register the object

locator Locator!()

the locator used to fetch registered object's dependencies.

Meta