PropertiesBuilder

DSL builder for defining multiple Property instances in a single block.

Use this builder inside a ff4k or other DSL block to group property definitions. You can add:

  • pre-built Property objects, or

  • inline properties using the DSL.

Example

val properties = PropertiesBuilder().apply {
property("max-retries") {
value = 3
description = "Maximum retry attempts"
}
property(PropertyString("api-key", "secret"))
}.build()

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun add(value: Property<*>)

Adds a value to the collector explicitly.

Link copied to clipboard
fun property(property: Property<*>)

Adds a pre-built Property to this builder.

fun <T> property(name: String, block: PropertyBuilder<T>.() -> Unit)

Creates and adds a Property inline using the DSL.

Link copied to clipboard
operator fun Property<*>.unaryPlus()

Adds this value to the collector.