de.thomaskrille.dropwizard_template_config.DefaultTemplateConfigVariablesProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dropwizard-template-config Show documentation
Show all versions of dropwizard-template-config Show documentation
Dropwizard bundle that enables you to write your config.yaml as a template.
The newest version!
package de.thomaskrille.dropwizard_template_config;
import java.util.HashMap;
import java.util.Map;
public class DefaultTemplateConfigVariablesProvider implements TemplateConfigVariablesProvider {
private final String namespace;
private final Map data;
public DefaultTemplateConfigVariablesProvider(String namespace) {
this(namespace, new HashMap<>());
}
public DefaultTemplateConfigVariablesProvider(String namespace, Map data) {
this.namespace = namespace;
this.data = data;
}
public void put(String name, String value) {
data.put(name, value);
}
@Override
public String getNamespace() {
return this.namespace;
}
@Override
public Map getVariables() {
return this.data;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy