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.

  1. class ConstructorBasedFactory(T, Args...)
  2. auto constructorBasedFactory(Args args)
    constructorBasedFactory
    (
    T
    Args...
    )
    (
    auto ref Args args
    )

Parameters

T

component type

Args

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

Meta