nyla.solutions.commas.Shell Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nyla.solutions.commas Show documentation
Show all versions of nyla.solutions.commas Show documentation
Command pattern implementation for building services.
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();
}