constructorBasedFactory

Instantiates component using it's constructor with args.

Encapsulates construction of component using a constructor, with args. Arguments from argument list that are RuntimeReferences, are automatically replaced with component extracted from locator.

constructorBasedFactory
(
T
Args...
)
(
auto ref Args args
)

Parameters

T

component type

Args

type tuple of args that are passed to T's constructor

Meta