Provider

Interface for a provider for dependency injection. A provider knows about the type it produces, and can produce a value.

Members

Functions

provide
T provide()

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

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

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

Properties

providedType
TypeInfo providedType [@property getter]

Return a TypeInfo describing the type provided.

Meta