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

nyla.solutions.commas.Shell Maven / Gradle / Ivy

The newest version!
package nyla.solutions.commas;

import java.util.Collection;

public interface Shell 
{
	/**
	 * Crate name
	 */
	public String getName();
	
	/**
	 * 
	 * @param functionName the function to retrieve
	 * @return the function
	 */
	public  Command getCommand(String commandName);
	
	/**
	 * Execute a function call
	 * @param functionName the function to execute
	 * @param request the input argument to the function
	 * @return the return object of the function call
	 */
	public Object executeCommand(String commandName, Object request);
	
	/**
	 * 
	 * @param functionName the function to retrieve
	 * @return the function
	 */
	public   Command  getCommand(String commmanName, Object context);
	
	/**
	 * 
	 * @return list all functions for this service
	 */
	public Collection> getCommands();	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy