|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.ipojo.Handler
org.apache.felix.ipojo.PrimitiveHandler
org.ow2.shelbie.core.internal.handler.CommandHandler
public class CommandHandler
This Handler manages the link between the iPOJO component (implementing the
Action interface) and the shell runtime.
| Field Summary | |
|---|---|
static String |
COMMAND_ELEMENT
Name of the 'command' element. |
static String |
NAMESPACE
The handler Namespace. |
static String |
TYPE_ATTRIBUTE
Name of the 'type' attribute. |
| Fields inherited from class org.apache.felix.ipojo.PrimitiveHandler |
|---|
HANDLER_TYPE |
| Fields inherited from class org.apache.felix.ipojo.Handler |
|---|
HANDLER_LEVEL_PROPERTY, HANDLER_NAME_PROPERTY, HANDLER_NAMESPACE_PROPERTY, HANDLER_TYPE_PROPERTY, m_instance, m_isValid |
| Constructor Summary | |
|---|---|
CommandHandler()
|
|
| Method Summary | |
|---|---|
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<org.ow2.shelbie.core.registry.info.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. |
| Methods inherited from class org.apache.felix.ipojo.PrimitiveHandler |
|---|
attach, getConstructorParameter, getConstructorParameterType, getFactory, getHandler, getInstanceManager, getLogger, getPojoMetadata, onCreation, onEntry, onError, onExit, onFinally, onGet, onSet, setFactory |
| Methods inherited from class org.apache.felix.ipojo.Handler |
|---|
debug, error, error, getHandlerManager, getValidity, info, initializeComponentFactory, isValid, reconfigure, setValidity, stateChanged, warn, warn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NAMESPACE
public static final String TYPE_ATTRIBUTE
public static final String COMMAND_ELEMENT
| Constructor Detail |
|---|
public CommandHandler()
| Method Detail |
|---|
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 org.ow2.shelbie.core.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<org.ow2.shelbie.core.registry.info.ScopeInfo> getScopeInfo()
getScopeInfo in interface org.ow2.shelbie.core.registry.supply.InfoSupplierpublic org.apache.felix.ipojo.architecture.HandlerDescription getDescription()
getDescription in class org.apache.felix.ipojo.Handler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||