inline fun <reified T : Any> constant(value: T, qualifier: Any? = null, generics: Boolean = false, override: Boolean = false): Unit
Register a constant of type T.
value
- The value of this constant provider.
qualifier
- An optional qualifier.
generics
- If true this will preserve generic information of T.
override
- If true this will override an existing factory of this type.