constant

inline fun <T : Any> DIAware.constant(): LazyDelegate<T>

Gets a constant of type T and tag whose tag is the name of the receiving property.

T generics will be erased!

Return

An instance of T.

Parameters

T

The type of object to retrieve.

Throws

If no provider was found.

If the value construction triggered a dependency loop.