Companion

Properties

Link copied to clipboard

The metadata a module adds by hand to what its properties classes give.

Link copied to clipboard
const val ENV_PREFIX: String

The prefix of the environment variables checked: Spring maps WOW_X_Y to wow.x.y.

Link copied to clipboard

The maps of beans whose keys are checked to the value's properties (MAPS), by the map's name: the permits of the calling services, the peers this one calls, and each aggregate's, store's, subscription's, schedule's and error code's settings.

Link copied to clipboard
const val METADATA: String

The metadata Spring Boot's tooling reads, in the host's jar and any module's.

Link copied to clipboard
const val MIGRATION: String

The migration guide's page of the configuration keys of earlier versions.

Link copied to clipboard

The modules whose own metadata declares the keys under a prefix: a key there is unknown when the module is not on the class path, and the refusal names it.

Link copied to clipboard
const val VARIABLES: String

Why a variable of the application's own under a Wow group is refused too, and what to do.

Functions

Link copied to clipboard
fun moduleOf(key: String): String?

The module that declares key, when its prefix is one of MODULES.

Link copied to clipboard
fun nameOf(key: String): ConfigurationPropertyName

The property name key stands for: a wow.* key as written, an environment variable as Spring maps it (lower case, _ a dot, a number an index).

Link copied to clipboard
fun namesOf(key: String): List<ConfigurationPropertyName>

The property names key may stand for: a wow.* key as written; an environment variable as nameOf maps it, and in Spring's legacy form too, each underscore between two words a dash or a dot (WOW_COSEC_TENANT_LEVEL_ROLES is wow.cosec.tenant-level.roles), as Spring's binder reads it.

Link copied to clipboard
fun of(classLoader: ClassLoader?, prefixes: Collection<String> = emptyList(), declared: Collection<String> = emptyList(), storeOptions: Collection<ProviderOption<*>> = emptyList()): ConfigurationKeys

The keys of every METADATA and ADDITIONAL_METADATA resource of classLoader, each module's, and the declared keys no metadata needs to list (the wow.<type>.<key> options the node's providers declare), with the prefixes of the application's other properties beans (prefixes) that no metadata describes, and the storeOptions the store providers declare, which a store sets as wow.stores.<name>.<key>.