Package-level declarations

Types

Link copied to clipboard
class CheckedMap(val name: String, val entry: String, val type: Class<*>)

A map of beans whose entries the reference lists to the value's properties: the map's name, how the reference writes one of its entries (entry, <name> or [<context>.<aggregate>]), and the type of its values.

Link copied to clipboard
class ConfigurationKeys(keys: Map<ConfigurationPropertyName, Bindable<*>>, owned: List<ConfigurationPropertyName> = emptyList(), storeOptions: Collection<ProviderOption<*>> = emptyList())

The keys of the environment under wow that nothing reads: Spring binds what it knows and ignores the rest, so wow.cluster.forward-timout would be a silent no-op. A key is under wow when Spring maps it there, however its root is written (Wow.cluster.forward-timout, the variable wow_cluster_forwardtimout; #7637), since the binder reads every such spelling; a key Spring maps elsewhere (wowza.region) is left alone. The keys that exist are the wow.* keys of the configuration metadata on the class path (METADATA, the host's and any module's; never Spring Boot's own), each with its type, and the options the node's providers declare; whether a key or a variable is read is decided by binding (#7515): the check binds each of them as its type over the environment, as the host does, and under each entry of wow.stores the options the store providers declare (BoundKeys). A key of a property source is known when it gives a name the binder read, asked as the binder asks for it (as written or relaxed: laneCapacity is lane-capacity), and an environment variable the same way, in Spring's mapping of a variable to a name, both its forms (WOW_KAFKA_COMMANDINTAKE_ENABLED and the legacy WOW_COSEC_TENANT_LEVEL_ROLES). So a key under one read as one value is unknown (wow.kafka.bootstrap-servers[0]), and so is a variable for a map's entry whose name it cannot write: Spring takes a variable's first element after the map as the entry, so WOW_AGGREGATES_SHOP_CART_TENANT names no entry [shop.cart], and WOW_PEERS_ESHOP_ORDERING_URL reaches eshop-ordering only when the configuration defines that peer (ENTRIES). A key under the prefix of another @ConfigurationProperties bean of the application that no metadata describes (its owned prefixes) is known in any form: this check cannot tell its keys. Only property sources that list their names are read.

Link copied to clipboard
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.