ConstructorBasedFactory

Instantiates aggregate using it's constructor with 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.

class ConstructorBasedFactory : ParameterHolder!Args, InstanceFactory!T(
T
Args...
) if (
isObjectConstructorCompatible!(T, Args)
) {}

Constructors

this
this(Args args)
Undocumented in source.

Members

Functions

factory
T factory()

See InstanceFactory interface

Parameters

T

aggregate type

Args

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

Meta