Companion

Properties

Link copied to clipboard
const val DEFAULT_INTERNAL_PORT: Int = 9090
Link copied to clipboard
const val DEFAULT_PARTITIONS: Int = 64
Link copied to clipboard
const val PREFIX: String

Functions

Link copied to clipboard
fun of(environment: Environment): WowProperties

The wow.* settings environment gives, bound before the beans are, for a condition or an environment post-processor: the properties' own defaults are the only ones, as the bean's. Bound as Spring binds the bean, it reads no value at wow itself, only the keys under it (BIND_AS_THE_BEAN), so a file's wow: with nothing after it hides no variable from either (#7663).

Link copied to clipboard
fun ofOrNull(environment: Environment): WowProperties?

of, for an environment post-processor, which runs before Spring Boot configures the application's logging: null when a wow.* setting does not bind. The post-processor then adds nothing, and the properties' bean refuses the setting when it is bound, with Spring Boot's failure analysis on the application's own log.