methodConfigurer

Calls component's method with a set of arguments.

Encapsulates a call to component's method, with a set of arguments. The algorithm that calls component's method, will automatically replace RuntimeReferences from args list with components extracted from container, casted to type that is extracted from method's signature.

  1. class MethodConfigurer(T, string property, Args...)
  2. auto methodConfigurer(Args args)
    methodConfigurer
    (
    string property
    T
    Args...
    )
    (
    auto ref Args args
    )
    if (
    !isField!(T, property)
    )

Parameters

T

the component type

property

method that will be called

Args

type tuple of args that method can be called with.

Meta