CallbackFactoryAnnotation

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

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

Constructors

this
this(Dg dg, Args args)

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

Members

Functions

factoryContainer
InstanceFactory!T factoryContainer(Locator!() locator)

Constructs a factory that uses delegate to instantiate an aggregate of type T.

Variables

args
Tuple!Args args;
Undocumented in source.
dg
Dg dg;
Undocumented in source.

Parameters

Z

the type of aggregate that will be returned by the delegate

Args

type tuple of args that can be passed to delegate.

Meta