CallbackFactoryAnnotation

Annotation that specifies a delegate to be used to instantiate component.

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

Constructors

this
this(Dg dg, Args args)

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

Members

Variables

args
Args args;

Arguments that can be passed to delegate.

dg
Dg dg;

Delegate that is used to create 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