org.apache.karaf.shell.console
Class AbstractAction

java.lang.Object
  extended by org.apache.karaf.shell.console.AbstractAction
All Implemented Interfaces:
Action
Direct Known Subclasses:
HelpAction, OsgiCommandSupport

public abstract class AbstractAction
extends Object
implements Action


Field Summary
protected  org.slf4j.Logger log
           
protected  org.apache.felix.service.command.CommandSession session
           
 
Constructor Summary
AbstractAction()
           
 
Method Summary
protected abstract  Object doExecute()
           
 Object execute(org.apache.felix.service.command.CommandSession session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.slf4j.Logger log

session

protected org.apache.felix.service.command.CommandSession session
Constructor Detail

AbstractAction

public AbstractAction()
Method Detail

execute

public Object execute(org.apache.felix.service.command.CommandSession session)
               throws Exception
Specified by:
execute in interface Action
Throws:
Exception

doExecute

protected abstract Object doExecute()
                             throws Exception
Throws:
Exception


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.