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

org.fluentlenium.configuration.DefaultPropertiesBackend Maven / Gradle / Ivy

There is a newer version: 5.0.4
Show newest version
package org.fluentlenium.configuration;

import java.util.Properties;

/**
 * Properties backend based on java {@link Properties} object.
 */
public class DefaultPropertiesBackend implements PropertiesBackend {
    private final Properties properties;

    /**
     * Creates a new configuration based on properties object.
     *
     * @param properties properties object
     */
    public DefaultPropertiesBackend(Properties properties) {
        this.properties = properties;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy