| Modifier and Type | Field and Description |
|---|---|
private Map<String,TimestampedObject<? extends ShellCommand>> |
commandCache
.
|
(package private) PluginContext |
context
.
|
(package private) HashMap<String,CommandManager> |
managers
.
|
| Constructor and Description |
|---|
CRaSH(PluginContext context)
Create a new CRaSH.
|
| Modifier and Type | Method and Description |
|---|---|
CRaSHSession |
createSession(Principal user) |
ShellCommand |
getCommand(String name)
Attempt to obtain a command instance.
|
Iterable<String> |
getCommandNames() |
PluginContext |
getContext()
Returns the plugin context.
|
private ShellCommand |
getShellCommand(CommandManager manager,
String name,
Resource script) |
final PluginContext context
final HashMap<String,CommandManager> managers
private final Map<String,TimestampedObject<? extends ShellCommand>> commandCache
public CRaSH(PluginContext context) throws NullPointerException
context - the plugin contextNullPointerException - if the context argument is nullpublic CRaSHSession createSession(Principal user)
public PluginContext getContext()
public ShellCommand getCommand(String name) throws CommandCreationException, NullPointerException
name - the command nameCommandCreationException - if an error occured preventing the command creationNullPointerException - if the name argument is nullpublic Iterable<String> getCommandNames()
private ShellCommand getShellCommand(CommandManager manager, String name, Resource script) throws CommandCreationException
CommandCreationExceptionCopyright © 2013 eXo Platform SAS. All Rights Reserved.