public class JavaCommandManager extends CRaSHPlugin<CommandManager> implements CommandManager
| Modifier and Type | Field and Description |
|---|---|
private Compiler |
compiler
.
|
private static Set<String> |
EXT
.
|
CONSTRUCTED, FAILED, INITIALIZED, INITIALIZING, log| Constructor and Description |
|---|
JavaCommandManager() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
createConfigurationCapabilities, destroy, getConfigurationCapabilities, getContext, getStatus, getType, toStringpublic JavaCommandManager()
public boolean isActive()
CommandManagerisActive in interface CommandManagerpublic void init()
CRaSHPlugininit in class CRaSHPlugin<CommandManager>public CommandManager getImplementation()
CRaSHPlugingetImplementation in class CRaSHPlugin<CommandManager>public Set<String> getExtensions()
CommandManagergetExtensions in interface CommandManagerpublic CommandResolution resolveCommand(String name, byte[] source) throws CommandCreationException, NullPointerException
CommandManagerresolveCommand in interface CommandManagername - the command namesource - the command source @return the command or null if no command can be resolvedCommandCreationException - when the command exists but cannot be createdNullPointerException - 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 CommandManagerpublic String doCallBack(HashMap<String,Object> session, String name, String defaultValue)
doCallBack in interface CommandManagerCopyright © 2014 eXo Platform SAS. All Rights Reserved.