CallbackConfigurerAnnotation

Annotation that specifies a delegate to be used to configure component somehow.

@safe
struct CallbackConfigurerAnnotation (
Z
Dg
Args...
) if (
is(Dg == void delegate
(
Locator!()
,
Z
,
Args
)
) ||
is(Dg == void function
(
Locator!()
,
Z
,
Args
)
)
||
is(Dg == void delegate
(
Locator!()
,
ref Z
,
Args
)
)
||
is(Dg == void function
(
Locator!()
,
ref Z
,
Args
)
)
) {}

Constructors

this
this(Dg dg, Args args)

Constructor accepting a configurer delegate, and it's arguments.

Members

Variables

args
Args args;

Args that can be passed to delegate

dg
Dg dg;

Delegate that is used to configure component

Parameters

Z

the type of component that will be returned by the delegate

Args

type tuple of args that can be passed to delegate.

Meta