public class CommandHandler extends org.apache.felix.ipojo.PrimitiveHandler implements org.apache.felix.service.command.Function, ICompletable, InfoSupplier
Action interface) and the shell runtime.| Modifier and Type | Field and Description |
|---|---|
static String |
COMMAND_ELEMENT
Name of the 'command' element.
|
static String |
NAMESPACE
The handler Namespace.
|
static 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,
Map reference) |
void |
configure(org.apache.felix.ipojo.metadata.Element element,
Dictionary dictionary) |
Object |
execute(org.apache.felix.service.command.CommandSession commandSession,
List<Object> objects)
Simply wraps the inner command.
|
List<jline.console.completer.Completer> |
getCompleters() |
org.apache.felix.ipojo.architecture.HandlerDescription |
getDescription()
Returns the current handler description.
|
Collection<ScopeInfo> |
getScopeInfo() |
void |
invalidate()
Called when the handler's instance (not the instance managed by the handler) is becoming invalid.
|
void |
start() |
void |
stop() |
void |
unbindCompleter(jline.console.completer.Completer completer) |
void |
validate()
Called when the handler's instance (not the instance managed by the handler) is really OK.
|
attach, getConstructorParameter, getConstructorParameterType, getFactory, getHandler, getInstanceManager, getLogger, getPojoMetadata, onCreation, onEntry, onError, onExit, onFinally, onGet, onSet, setFactorypublic static final String NAMESPACE
public static final String TYPE_ATTRIBUTE
public static final String COMMAND_ELEMENT
public void configure(org.apache.felix.ipojo.metadata.Element element,
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,
Map reference)
public void unbindCompleter(jline.console.completer.Completer completer)
public Object execute(org.apache.felix.service.command.CommandSession commandSession, List<Object> objects) throws Exception
execute in interface org.apache.felix.service.command.FunctionExceptionpublic List<jline.console.completer.Completer> getCompleters()
getCompleters in interface ICompletablepublic void start()
start in class org.apache.felix.ipojo.Handlerpublic void validate()
public void invalidate()
public void stop()
stop in class org.apache.felix.ipojo.Handlerpublic Collection<ScopeInfo> getScopeInfo()
getScopeInfo in interface InfoSupplierpublic org.apache.felix.ipojo.architecture.HandlerDescription getDescription()
getDescription in class org.apache.felix.ipojo.HandlerCopyright © 2013 OW2 Consortium. All Rights Reserved.