Class ConstructorBasedFactory

Instantiates aggregate using it's constructor with args.

class ConstructorBasedFactory(T, Args...)
  
if (isObjectConstructorCompatible!(T, Args));

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

Constructors

NameDescription
thisConstructor for ConstructorBasedFactory!(T, Args)

Methods

NameDescription
factorySee InstanceFactory interface

Parameters

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