SingletonProvider

A Provider that uses another provider to create an instance the first time provide is called. Future calls to provide will return this same instance.

Constructors

this
this(Provider baseProvider)
Undocumented in source.

Members

Functions

withProvided
void withProvided(void delegate(void*) dg)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

providedType
TypeInfo providedType [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Provider

withProvided
void withProvided(void delegate(void*) dg)

Produce the value. A pointer to the value is passed to a delegate.

provide
T provide()

Provied the value. T must be the same type represented by the TypeInfo returned by providedType.

providedType
TypeInfo providedType [@property getter]

Return a TypeInfo describing the type provided.

Meta