|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crsh.shell.impl.CRaSH
public class CRaSH
Field Summary | |
---|---|
(package private) ClassManager<ShellCommand> |
commands
. |
(package private) PluginContext |
context
. |
(package private) ClassManager<groovy.lang.Script> |
lifecycles
. |
Constructor Summary | |
---|---|
CRaSH(PluginContext context)
|
Method Summary | |
---|---|
CRaSHSession |
createSession(Principal user)
|
ShellCommand |
getCommand(String name)
Attempt to obtain a command instance. |
PluginContext |
getContext()
Returns the plugin context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final ClassManager<ShellCommand> commands
final ClassManager<groovy.lang.Script> lifecycles
final PluginContext context
Constructor Detail |
---|
public CRaSH(PluginContext context)
Method Detail |
---|
public CRaSHSession createSession(Principal user)
public PluginContext getContext()
public ShellCommand getCommand(String name) throws NoSuchCommandException, NullPointerException
name
- the command name
NoSuchCommandException
- if an error occured preventing the command creation
NullPointerException
- if the name argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |