net.orpiske.ssps.sdm.actions
Class ActionInterface

java.lang.Object
  extended by net.orpiske.ssps.sdm.actions.ActionInterface
Direct Known Subclasses:
AddRepository, Installer, Search, Uninstall, Update, Upgrade

public abstract class ActionInterface
extends Object

Implements app specific actions

Author:
Otavio R. Piske

Constructor Summary
ActionInterface()
           
 
Method Summary
protected  void help(org.apache.commons.cli.Options options, int code)
          Prints the help for the action and exit
protected abstract  void processCommand(String[] args)
          Process the command line arguments
abstract  void run()
          Runs the action
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionInterface

public ActionInterface()
Method Detail

help

protected void help(org.apache.commons.cli.Options options,
                    int code)
Prints the help for the action and exit

Parameters:
options - the options object
code - the exit code

processCommand

protected abstract void processCommand(String[] args)
Process the command line arguments

Parameters:
args - the command line arguments

run

public abstract void run()
Runs the action



Copyright © 2013. All Rights Reserved.