SetterAnnotation.factoryConfigurer

Constructs a configurer that will call or set a member for aggregate of type T.

Constructs a configurer that will call or set a member for aggregate of type T. In case when member is a method, it will be called with passed arguments. If method is an overload set, the method that matches argument list will be called. In case when member is a field, it will be set to first argument from Args list.

  1. PropertyConfigurer!T factoryConfigurer(Locator!() locator)
    struct SetterAnnotation(Args...)
    factoryConfigurer
    (
    T
    string method
    )
    if (
    !isField!(T, method)
    )
  2. PropertyConfigurer!T factoryConfigurer(Locator!() locator)

Parameters

T

the aggregate type

method

the member which setter will call or set.

locator Locator!()

locator used to extract needed dependencies for T

Return Value

Type: PropertyConfigurer!T

PropertyConfigurer!T for objects PropertyConfigurer!(Wrapper!T) for structs

Meta