|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.crsh.shell.impl.command.CRaSH
public class CRaSH
Field Summary | |
---|---|
(package private) PluginContext |
context
. |
(package private) ArrayList<Language> |
langs
. |
private ArrayList<CommandResolver> |
resolvers
. |
(package private) LanguageCommandResolver |
scriptResolver
. |
Constructor Summary | |
---|---|
CRaSH(PluginContext context)
Create a new CRaSH. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final PluginContext context
final LanguageCommandResolver scriptResolver
private final ArrayList<CommandResolver> resolvers
final ArrayList<Language> langs
Constructor Detail |
---|
public CRaSH(PluginContext context) throws NullPointerException
context
- the plugin context
NullPointerException
- if the context argument is nullMethod Detail |
---|
public CRaSHSession createSession(Principal user)
public PluginContext getContext()
public Command<?> getCommand(String name) throws CommandException, NullPointerException
name
- the command name
CommandException
- if an error occured preventing the command creation
NullPointerException
- if the name argument is nullpublic Iterable<Map.Entry<String,String>> getCommands()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |