All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.thomaskrille.dropwizard_template_config.DefaultTemplateConfigVariablesProvider Maven / Gradle / Ivy

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