public class CommandManagerProxy extends CRaSHPlugin<CommandManager> implements CommandManager
| Modifier and Type | Field and Description |
|---|---|
private String |
className
.
|
private Set<String> |
ext
.
|
private String |
name
.
|
private AtomicReference<CommandManager> |
real
.
|
CONSTRUCTED, FAILED, INITIALIZED, INITIALIZING, log| Constructor and Description |
|---|
CommandManagerProxy(String name,
String className,
Set<String> ext) |
| 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, toStringprivate final AtomicReference<CommandManager> real
public CommandManagerProxy(String name, String className, Set<String> ext)
public CommandManager getImplementation()
CRaSHPlugingetImplementation in class CRaSHPlugin<CommandManager>public void init()
CRaSHPlugininit in class CRaSHPlugin<CommandManager>public boolean isActive()
CommandManagerisActive in interface CommandManagerpublic 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.