Registers a new key with the configuration. Keys and values must also be declared at the type-level by extending the WellknownConfigKeys interface.
WellknownConfigKeys
Throws an exception if the key was already registered.
the configuration key
the value or a function returning the value (for lazy evaluation).
Optional
registration flags
Registers a new key with the configuration. Keys and values must also be declared at the type-level by extending the
WellknownConfigKeysinterface.Throws an exception if the key was already registered.