com.alexecollins.docker.orchestration.util.PropertiesTokenResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-java-orchestration Show documentation
Show all versions of docker-java-orchestration Show documentation
A library for orchestrating Docker containers.
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