DefaultHandler

fun interface DefaultHandler

Functional interface for converting a raw value (usually a String but any Any? is allowed) into an instance of the requested Kotlin type.

Implementations should not throw unless the value is inherently un‐parsable; callers treat an exception as a hard failure during configuration loading.

Functions

Link copied to clipboard
abstract fun parse(raw: Any?, type: KClass<*>): Any?