org.apache.felix.gogo.commands.basic
Class AbstractCommand
java.lang.Object
org.apache.felix.gogo.commands.basic.AbstractCommand
- All Implemented Interfaces:
- org.apache.felix.service.command.Function
- Direct Known Subclasses:
- BlueprintCommand, SimpleCommand
public abstract class AbstractCommand
- extends java.lang.Object
- implements org.apache.felix.service.command.Function
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCommand
public AbstractCommand()
execute
public java.lang.Object execute(org.apache.felix.service.command.CommandSession session,
java.util.List<java.lang.Object> arguments)
throws Exception
- Specified by:
execute
in interface org.apache.felix.service.command.Function
- Throws:
Exception
getActionClass
public java.lang.Class<? extends Action> getActionClass()
createNewAction
public abstract Action createNewAction()
releaseAction
public void releaseAction(Action action)
throws Exception
- Release the used Action.
This method has to be overridden for pool based Actions.
- Parameters:
action
- Action that was executed
- Throws:
Exception
- if something went wrong during the Action release
getPreparator
protected ActionPreparator getPreparator()
throws Exception
- Throws:
Exception
Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.