Function CallbackFactoryAnnotation.factoryContainer

Constructs a factory that uses delegate to instantiate an aggregate of type T.

InstanceFactory!T factoryContainer(T, string p = "") (
  Locator!() locator
)
if (is(Z : T));

Parameters

NameDescription
T the aggregate type
locator locator used to extract needed dependencies for T, it is also passed to delegate as first argument.

Returns

InstanceFactory!T for objects InstanceFactory!(Wrapper!T) for structs