Class ConstructorBasedFactory

Instantiates component using it's constructor with args.

class ConstructorBasedFactory(T, Args...)
  
if (isObjectConstructorCompatible!(T, 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.

Constructors

NameDescription
this Constructor for ConstructorBasedFactory!(T, Args)

Methods

NameDescription
factory See InstanceFactory interface

Parameters

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