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

com.threatconnect.app.apps.SystemPropertiesAppConfig Maven / Gradle / Ivy

There is a newer version: 2.15.0
Show newest version
package com.threatconnect.app.apps;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * An implementation of the {@link AppConfig} class which will pull any unknown properties from the system properties or
 * VM arguments
 *
 * @author Greg Marut
 */
public class SystemPropertiesAppConfig extends AppConfig
{
	private static final Logger logger = LoggerFactory.getLogger(SystemPropertiesAppConfig.class);
	
	@Override
	protected String loadSetting(final String key)
	{
		String value = System.getProperty(key);
		logger.trace("Reading param {}={}", key, value);
		
		return value;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy