componentScan

Register an object into storage using annotations provided in it.

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

T

type of object to be registered

storage Storage!(ObjectFactory, string)

the storage where to register the object

locator Locator!()

the locator used to find object dependencies

id string

identity by which object will be stored in storage

Meta