FeatureBuilder
DSL builder used to define a single feature in the FF4K configuration.
A feature represents a toggleable capability that can be enabled or disabled, grouped, protected by permissions, and controlled by a flipping strategy.
Instances of this builder are created internally by the FF4K DSL and are not intended to be instantiated directly.
Example:
feature("new-ui") {
isEnabled = true
description = "Enables the new UI experience"
group = "ui"
permissions("ADMIN", "BETA_USER")
property<String>("theme") {
value = "dark"
}
}Properties
Functions
Configures an AllowListStrategy for this feature.
Configures a ClientFilterStrategy for this feature.
Configures a DailyHoursStrategy for this feature.
Configures a DateRangeStrategy for this feature using ISO-8601 date strings.
Configures a DateRangeStrategy for this feature using Instant values.
Configures a DateRangeStrategy for this feature using LocalDateTime values and timezone.
Configures a DenyListStrategy for this feature.
Adds a single permission required to access this feature.
Adds permissions using a dedicated permissions DSL block.
Adds multiple permissions required to access this feature.
Configures a PonderationStrategy for this feature with a decimal weight.
Configures a PonderationStrategy for this feature with an integer percentage.
Configures a RegionFilterStrategy for this feature.
Configures a ReleaseDateStrategy for this feature using an ISO-8601 date string.
Configures a ReleaseDateStrategy for this feature using an Instant.
Configures a ReleaseDateStrategy for this feature using a LocalDateTime and timezone.
Configures a ServerFilterStrategy for this feature.
Configures a UserPonderationStrategy for this feature with a decimal weight.
Configures a UserPonderationStrategy for this feature with an integer percentage.
Configures a WeekdayStrategy for this feature using a DSL builder.