Modifier and Type | Field and Description |
---|---|
(package private) PluginContext |
context
.
|
(package private) ArrayList<Language> |
langs
.
|
private ArrayList<CommandResolver> |
resolvers
.
|
(package private) LanguageCommandResolver |
scriptResolver
.
|
Constructor and Description |
---|
CRaSH(PluginContext context)
Create a new CRaSH.
|
Modifier and Type | Method and Description |
---|---|
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.
|
final PluginContext context
final LanguageCommandResolver scriptResolver
private final ArrayList<CommandResolver> resolvers
public CRaSH(PluginContext context) throws NullPointerException
context
- the plugin contextNullPointerException
- if the context argument is nullpublic 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 nullpublic Iterable<Map.Entry<String,String>> getCommands()
Copyright © 2015 eXo Platform SAS. All Rights Reserved.