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:
CatAction, ClearAction, EachAction, EchoAction, ExecuteAction, GrepAction, HeadAction, HelpAction, HistoryAction, IfAction, JavaAction, LogoutAction, MoreAction, NewAction, OsgiCommandSupport, PrintfAction, SleepAction, SortAction, TacAction, TailAction

public abstract class AbstractAction
extends java.lang.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  java.lang.Object doExecute()
           
 java.lang.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 java.lang.Object execute(org.apache.felix.service.command.CommandSession session)
                         throws Exception
Specified by:
execute in interface Action
Throws:
Exception

doExecute

protected abstract java.lang.Object doExecute()
                                       throws Exception
Throws:
Exception


Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.