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

com.alexecollins.docker.orchestration.util.PropertiesTokenResolver Maven / Gradle / Ivy

There is a newer version: 2.11.29
Show newest version
package com.alexecollins.docker.orchestration.util;

import java.util.Properties;

public class PropertiesTokenResolver implements TokenResolver {

    private final Properties properties;

    public PropertiesTokenResolver(Properties properties) {
        super();
        this.properties = properties;
    }

    @Override
    public String resolveToken(String tokenName) {
        final Object value = properties.get(tokenName);
        return (value == null) ? null : value.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy