public class CommandHandler extends org.apache.felix.ipojo.PrimitiveHandler implements org.apache.felix.service.command.Function, ICompletable
Action interface) and the shell runtime.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMMAND_ELEMENT
Name of the 'command' element.
|
static java.lang.String |
NAMESPACE
The handler Namespace.
|
static java.lang.String |
TYPE_ATTRIBUTE
Name of the 'type' attribute.
|
| Constructor and Description |
|---|
CommandHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindActionPreparator(org.apache.felix.gogo.commands.basic.ActionPreparator preparator) |
void |
bindCompleter(jline.console.completer.Completer completer,
java.util.Map reference) |
void |
configure(org.apache.felix.ipojo.metadata.Element element,
java.util.Dictionary dictionary) |
java.lang.Object |
execute(org.apache.felix.service.command.CommandSession commandSession,
java.util.List<java.lang.Object> objects)
Simply wraps the inner command.
|
java.util.List<jline.console.completer.Completer> |
getCompleters() |
org.apache.felix.ipojo.architecture.HandlerDescription |
getDescription()
Returns the current handler description.
|
void |
start() |
void |
stop() |
void |
unbindCompleter(jline.console.completer.Completer completer) |
attach, getConstructorParameter, getConstructorParameterType, getFactory, getHandler, getInstanceManager, getLogger, getPojoMetadata, onCreation, onEntry, onError, onExit, onFinally, onGet, onSet, setFactorypublic static final java.lang.String NAMESPACE
public static java.lang.String TYPE_ATTRIBUTE
public static java.lang.String COMMAND_ELEMENT
public void configure(org.apache.felix.ipojo.metadata.Element element,
java.util.Dictionary dictionary)
throws org.apache.felix.ipojo.ConfigurationException
configure in class org.apache.felix.ipojo.Handlerorg.apache.felix.ipojo.ConfigurationExceptionpublic void bindActionPreparator(org.apache.felix.gogo.commands.basic.ActionPreparator preparator)
public void bindCompleter(jline.console.completer.Completer completer,
java.util.Map reference)
public void unbindCompleter(jline.console.completer.Completer completer)
public java.lang.Object execute(org.apache.felix.service.command.CommandSession commandSession,
java.util.List<java.lang.Object> objects)
throws java.lang.Exception
execute in interface org.apache.felix.service.command.Functionjava.lang.Exceptionpublic java.util.List<jline.console.completer.Completer> getCompleters()
getCompleters in interface ICompletablepublic void start()
start in class org.apache.felix.ipojo.Handlerpublic void stop()
stop in class org.apache.felix.ipojo.Handlerpublic org.apache.felix.ipojo.architecture.HandlerDescription getDescription()
getDescription in class org.apache.felix.ipojo.HandlerCopyright © 2012 OW2 Consortium. All Rights Reserved.