FunctionInstanceFactory

Instantiates a component using a function/delegate with args

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

  1. template FunctionInstanceFactory(Dg, Args...)
    template FunctionInstanceFactory (
    Dg
    Args...
    ) if (
    isSomeFunction!Dg
    ) {}
  2. auto functionInstanceFactory(Dg dg, Args args)

Members

Aliases

Params
alias Params = Parameters!Dg
Undocumented in source.
Z
alias Z = ReturnType!Dg
Undocumented in source.

Classes

FunctionInstanceFactory
class FunctionInstanceFactory
Undocumented in source.

Parameters

Dg

type of function or delegate

Args

arguments mixed with references used to resolve function arguments

Meta