set

Set component's public field to passed arg.

Configures component's factory to set specified field to passed arg. The function will check if passed argument is type compatible with specified field. The argument can be a reference as well. In case of argument being reference to another component in container, no type compatiblity checking will be done.

Params factory = the factory which will be configured to set property. arg = the value of property to be set, or reference to component in container.

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

Return Value

Type: Z

Z.

Meta