com.softicar.platform.common.core.properties.SystemProperty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.core.properties;
import java.util.function.Function;
/**
* An {@link IProperty} implementation for JVM system properties.
*
* @author Alexander Schmidt
*/
public class SystemProperty extends AbstractProperty {
protected SystemProperty(PropertyName propertyName, T defaultValue, Function parser) {
super(propertyName, defaultValue, parser);
}
@Override
protected String getValueString(PropertyName propertyName) {
return System.getProperty(propertyName.toString());
}
}