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

com.nitorcreations.willow.deployer.LaunchMethod Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package com.nitorcreations.willow.deployer;

import java.util.Properties;

public interface LaunchMethod extends Runnable {
	public static final String ENV_KEY_DEPLOYER_IDENTIFIER = "DEPLOYER_IDENTIFIER";
	
	public enum TYPE {
		DEPENDENCY(DependencyLauncher.class), NATIVE(NativeLauncher.class), JAVA(JavaLauncher.class);
		Class launcher;
		private TYPE(Class launcher) {
			this.launcher = launcher;
		}
		public LaunchMethod getLauncher() {
			try {
				return launcher.newInstance();
			} catch (InstantiationException | IllegalAccessException e) {
				return null;
			}
		}
	}
	public void setProperties(Properties properties);
	public long getProcessId();
	void stop();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy