public final class Configs extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
defineConfig(Map<String,Object> content,
io.bootique.meta.config.ConfigMetadataNode config,
com.google.inject.Injector injector)
Add a config to a Yaml configuration map.
|
static void |
defineScalar(Map<String,Object> content,
String bootiqueVariable,
Object value)
Add a scalar to a Yaml configuration map.
|
static List<io.bootique.meta.config.ConfigMetadataNode> |
extractConfigs(io.bootique.meta.module.ModulesMetadata modulesMetadata)
Extract the configuration metadata nodes from the given metadata.
|
public static List<io.bootique.meta.config.ConfigMetadataNode> extractConfigs(io.bootique.meta.module.ModulesMetadata modulesMetadata)
modulesMetadata - the metadata of the bootique modules.public static void defineConfig(Map<String,Object> content, io.bootique.meta.config.ConfigMetadataNode config, com.google.inject.Injector injector)
content - the Yaml configuration map.config - the configuration.injector - the injector to be used for creating the configuration objects.public static void defineScalar(Map<String,Object> content, String bootiqueVariable, Object value) throws Exception
content - the Yaml configuration map.bootiqueVariable - the name of the bootique variable.value - the value.Exception - if a map cannot be created internally.Copyright © 2006-2019 Arakhnê.org Members. All rights reserved, under the terms of the Apache 2 license.