public class CRaSH extends Object
| Constructor and Description |
|---|
CRaSH(PluginContext context)
Create a new CRaSH.
|
| Modifier and Type | Method and Description |
|---|---|
org.crsh.shell.impl.command.CRaSHSession |
createSession(Principal user) |
Command<?> |
getCommand(String name)
Attempt to obtain a command instance.
|
Iterable<Map.Entry<String,String>> |
getCommands() |
PluginContext |
getContext()
Returns the plugin context.
|
public CRaSH(PluginContext context) throws NullPointerException
context - the plugin contextNullPointerException - if the context argument is nullpublic org.crsh.shell.impl.command.CRaSHSession createSession(Principal user)
public PluginContext getContext()
public Command<?> getCommand(String name) throws CommandException, NullPointerException
name - the command nameCommandException - if an error occured preventing the command creationNullPointerException - if the name argument is nullCopyright © 2015 eXo Platform SAS. All Rights Reserved.