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 by default) is in effect, and for no other reason. 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, wow.transport=auto keeps the topics in the JVM, and the public port serves without a CallerResolver bean, taking its callers from request headers. reason says why, null outside development.

An address states nothing: a node whose wow.internal.host or wow.node.address is a loopback address, without such a profile, is a deployment and refuses what a deployment refuses. A loopback port is reachable from its machine alone, but the public port of such a node would serve every request as the anonymous caller.

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.

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: the same as active, development's one statement.

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