|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.plugin.CRaSHPlugin<CommandManager>
org.crsh.lang.java.JavaCommandManager
public class JavaCommandManager
| Field Summary | |
|---|---|
private Compiler |
compiler
. |
private static Set<String> |
EXT
. |
| Fields inherited from class org.crsh.plugin.CRaSHPlugin |
|---|
CONSTRUCTED, FAILED, INITIALIZED, INITIALIZING, log |
| Constructor Summary | |
|---|---|
JavaCommandManager()
|
|
| Method Summary | |
|---|---|
void |
destroy(HashMap<String,Object> session)
|
String |
doCallBack(HashMap<String,Object> session,
String name,
String defaultValue)
|
Set<String> |
getExtensions()
Returns the set of extensions managed by this implementation. |
CommandManager |
getImplementation()
Returns the implementation. |
void |
init()
Implement this method to know about init life cycle callback. |
void |
init(HashMap<String,Object> session)
|
boolean |
isActive()
Return true if this command manager is active. |
CommandResolution |
resolveCommand(String name,
byte[] source)
Resolve a command for the specified command name. |
| Methods inherited from class org.crsh.plugin.CRaSHPlugin |
|---|
createConfigurationCapabilities, destroy, getConfigurationCapabilities, getContext, getStatus, getType, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final Set<String> EXT
private Compiler compiler
| Constructor Detail |
|---|
public JavaCommandManager()
| Method Detail |
|---|
public boolean isActive()
CommandManager
isActive in interface CommandManagerpublic void init()
CRaSHPlugin
init in class CRaSHPlugin<CommandManager>public CommandManager getImplementation()
CRaSHPlugin
getImplementation in class CRaSHPlugin<CommandManager>public Set<String> getExtensions()
CommandManager
getExtensions in interface CommandManager
public CommandResolution resolveCommand(String name,
byte[] source)
throws CommandCreationException,
NullPointerException
CommandManager
resolveCommand in interface CommandManagername - the command namesource - the command source @return the command or null if no command can be resolved
CommandCreationException - when the command exists but cannot be created
NullPointerException - if the command name is nullpublic void init(HashMap<String,Object> session)
init in interface CommandManagerpublic void destroy(HashMap<String,Object> session)
destroy in interface CommandManager
public String doCallBack(HashMap<String,Object> session,
String name,
String defaultValue)
doCallBack in interface CommandManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||