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

com.github.dadiyang.httpinvoker.propertyresolver.PropertiesBasePropertyResolver Maven / Gradle / Ivy

package com.github.dadiyang.httpinvoker.propertyresolver;

import java.util.Properties;

/**
 * A PropertyResolver base on a Properties object.
 *
 * @author dadiyang
 * @since 1.0.9
 */
public class PropertiesBasePropertyResolver implements PropertyResolver {
    private Properties properties;

    public PropertiesBasePropertyResolver(Properties properties) {
        this.properties = properties;
    }

    @Override
    public boolean containsProperty(String key) {
        return properties.containsKey(key);
    }

    @Override
    public String getProperty(String key) {
        return properties.getProperty(key);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy