Function FactoryMethodContainerAdder.scan

Scan T's methods, for methods annotated with @component annotation, transform them into component factories that will use them to create components of returned type.

void scan(alias T) (
  Locator!() locator,
  Storage!(ObjectFactory,string) storage
)
if (isSupported!T);

Parameters

NameDescription
T type to be scanned
locator locator of components used by component factories
storage storage which will contain component factories