KeyUtils

Builds lookup keys from property names for ConfigLoader.resolve and generated code.

Functions

Link copied to clipboard

maxPoolSize to max.pool.size.

Link copied to clipboard

maxPoolSize to MAX_POOL_SIZE.

Link copied to clipboard
fun resolveKey(propertyName: String, prefix: String?, format: KeyFormat, customKey: String? = null): String

The key for propertyName in format under the SCREAMING_SNAKE prefix, or customKey unchanged when it is set.

Link copied to clipboard
fun resolvePrefix(propertyName: String, parentPrefix: String?): String

The SCREAMING_SNAKE prefix for a nested spec held in propertyName, e.g. OUTER_INNER.