componentScan

Register a set of objects by it's type, or implemented interface into a storage.

When registering an object by it's interface, next to interface it is required to specify the original type of object. 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

T

type of object to be registered

storage Storage!(ObjectFactory, string)

the storage where to register the object

Meta