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

prompto.config.StoreConfiguration Maven / Gradle / Ivy

The newest version!
package prompto.config;

public class StoreConfiguration extends IStoreConfiguration.Inline {

	protected IConfigurationReader reader;

	public StoreConfiguration(IConfigurationReader reader) {
		this.reader = reader;
		this.factory = ()->reader.getString("factory");
		this.host = ()->reader.getString("host");
		this.port = ()->reader.getInteger("port");
		this.dbName = ()->reader.getString("dbName");
		this.audit = ()->reader.getBooleanOrDefault("audit", false);
		this.user = ()->reader.getString("user");
		this.secretKey = ()->reader.readSecretKeyConfiguration("secretKey");
	}
	
	@Override
	public String toString() {
		return reader.toString(); // TODO call lambas since reader may have been overridden
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy