DevelopmentMode

class DevelopmentMode(val reason: String?, val profiles: List<String> = emptyList())

Whether the node runs for development: a profile of wow.dev-profiles (dev, local, test, demo) is active, or its internal port binds a loopback address alone. It is the one exemption the host's safeguards share, so a laptop starts as it is and a deployment cannot: wow.backend=auto falls back to memory, the public port serves without a CallerResolver bean, and, in a development profile alone (profiles), takes its callers from request headers. reason says why, null outside development.

The profiles in effect are the active ones, or Spring's default profiles (spring.profiles.default) when none is active, as Spring itself takes them: profiles are those of wow.dev-profiles among them, empty when the node runs for development by its loopback internal port alone.

Constructors

Link copied to clipboard
constructor(reason: String?, profiles: List<String> = emptyList())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether the node runs for development.

Link copied to clipboard

Whether a profile of wow.dev-profiles is in effect: an explicit choice to run for development.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun require(key: String, value: Any?, does: String)

Refuses a setting meant for development alone outside it: a WowConfigurationException of key set to value, which does what no deployment may.

Link copied to clipboard
open override fun toString(): String