set

Invoke component's method with supplied args.

Configures component's factory to call specified method with passed args. The function will check if the arguments passed to it are compatible with at least one method from possible overload set. The args list can contain references to other objects in locator as well, though no type compatibility checks will be performed at compile time.

  1. Z set(Z factory, Args args)
    @safe
    Z
    set
    (
    string property
    Z : PropertyConfigurersAware!T
    T
    Args...
    )
    (,
    auto ref Args args
    )
    if (
    !isField!(T, property)
    )
  2. Z set(Z factory, Arg arg)

Parameters

factory Z

the factory which will be configured to invoke method.

args Args

the arguments that will be used to invoke method on the new object.

Return Value

Type: Z

Z.

Meta