public abstract class AbstractCommand extends Object implements org.apache.felix.service.command.Function
Constructor and Description |
---|
AbstractCommand() |
Modifier and Type | Method and Description |
---|---|
abstract Action |
createNewAction() |
Object |
execute(org.apache.felix.service.command.CommandSession session,
List<Object> arguments) |
Class<? extends Action> |
getActionClass() |
protected ActionPreparator |
getPreparator() |
void |
releaseAction(Action action)
Release the used Action.
|
public Object execute(org.apache.felix.service.command.CommandSession session, List<Object> arguments) throws Exception
execute
in interface org.apache.felix.service.command.Function
Exception
public abstract Action createNewAction()
public void releaseAction(Action action) throws Exception
action
- Action that was executedException
- if something went wrong during the Action releaseprotected ActionPreparator getPreparator() throws Exception
Exception
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.