componentScan

Scan a module and register all public objects that are annotated with @component annotation.

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

Module

module to scan for components.

storage Storage!(ObjectFactory, string)

the storage where to register the object

locator Locator!()

the locator used to fetch registered object's dependencies.

Meta