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

org.metricssampler.cmd.ConfigurationCommand Maven / Gradle / Ivy

The newest version!
package org.metricssampler.cmd;

import com.beust.jcommander.ParametersDelegate;
import org.metricssampler.service.Bootstrapper;
import org.metricssampler.service.DefaultBootstrapper;

/**
 * Base class for commands that require the loaded application configuration.
 */
public abstract class ConfigurationCommand extends BootstrappedCommand {
	@ParametersDelegate
	protected ConfigurationCommandDelegate configuration = new ConfigurationCommandDelegate();

	@Override
	protected Bootstrapper createBootstrapper() {
		return DefaultBootstrapper.bootstrap(configuration.getConfig(), false);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy