ServiceConfigurationImpl.java [src/csip] Revision: default Date:
/*
* $Id$
*
* This file is part of the Cloud Services Integration Platform (CSIP),
* a Model-as-a-Service framework, API and application suite.
*
* 2012-2022, Olaf David and others, OMSLab, Colorado State University.
*
* OMSLab licenses this file to you under the MIT license.
* See the LICENSE file in the project root for more information.
*/
package csip;
import csip.api.server.ServiceConfiguration;
import java.util.logging.Logger;
/**
* ServiceConfiguration access.
*
* @author od
*/
class ServiceConfigurationImpl implements ServiceConfiguration {
private ModelDataService mds;
ServiceConfigurationImpl(ModelDataService mds) {
this.mds = mds;
}
@Override
public boolean hasProperty(String key) {
return Config.hasProperty(key);
}
@Override
public boolean isString(String key, String str) {
return Config.isString(key, str);
}
@Override
public String getString(String key, String def) {
return Config.getString(key, def);
}
@Override
public String getString(String key) {
return Config.getString(key);
}
@Override
public boolean getBoolean(String key, boolean def) {
return Config.getBoolean(key, def);
}
@Override
public boolean getBoolean(String key) {
return Config.getBoolean(key);
}
@Override
public int getInt(String key, int def) {
return Config.getInt(key, def);
}
@Override
public int getInt(String key) {
return Config.getInt(key);
}
@Override
public long getLong(String key, long def) {
return Config.getLong(key, def);
}
@Override
public long getLong(String key) {
return Config.getLong(key);
}
@Override
public double getDouble(String key, double def) {
return Config.getDouble(key, def);
}
@Override
public double getDouble(String key) {
return Config.getDouble(key);
}
@Override
public Logger getSystemLogger() {
return Config.LOG;
}
}