ValueProvider

A Provider that provides a value. The value is provided at construction type and the same value is returned each time provide is called.

class ValueProvider : Provider (
T
) {
T value;
}

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