Struct 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

NameDescription
thisConstructor accepting a factory delegate, and it's arguments.

Methods

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

Parameters

NameDescription
Z the type of aggregate that will be returned by the delegate
Args type tuple of args that can be passed to delegate.