Function ConstructorMethodConfiguratorPolicy.configureMethod

Checks if scanned method is a constructor and has @constructor annotation, and sets it to be used to construct component if so.

void configureMethod(string member, T, Z) (
  T instantiator,
  Locator!() locator
);

Parameters

NameDescription
Z component type
member member that should be scanned, only constructors are taken into account
instantiator Z component factory, which policy will set constructor to be used to construct component if possible
locator locator used to supply dependencies into constructor of component