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

org.unix4j.context.ExecutionContext Maven / Gradle / Ivy

There is a newer version: 0.6
Show newest version
package org.unix4j.context;

import java.io.File;
import java.util.Locale;
import java.util.Map;
import java.util.Properties;

import org.unix4j.command.Command;
import org.unix4j.convert.ValueConverter;
import org.unix4j.processor.LineProcessor;
import org.unix4j.variable.VariableContext;

/**
 * The execution context encapsulates all information relevant during the
 * execution of a {@link Command} or chain of joined commands. It is passed to
 * the {@link Command#execute(ExecutionContext, LineProcessor) execute(..)}
 * method providing access to the current directory, environment variables and
 * other information useful for the commands during their execution.
 */
public interface ExecutionContext {
	File getCurrentDirectory();

	String getUser();

	File getUserHome();

	File getTempDirectory();
	
	Locale getLocale();

	Map getEnv();

	Properties getSys();

	VariableContext getVariableContext();
	
	 ValueConverter getValueConverterFor(Class type);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy