org.knowhowlab.osgi.shell.equinox
Class AbstractEquinoxCommandProvider

java.lang.Object
  extended by org.knowhowlab.osgi.shell.equinox.AbstractEquinoxCommandProvider
All Implemented Interfaces:
org.eclipse.osgi.framework.console.CommandProvider

public abstract class AbstractEquinoxCommandProvider
extends Object
implements org.eclipse.osgi.framework.console.CommandProvider

Abstract class of Equinox Command Provider

Author:
dmytro.pishchukhin

Constructor Summary
AbstractEquinoxCommandProvider(Object service, String groupName, Set<String> commandHelps)
           
 
Method Summary
protected  String[] fetchCommandParams(org.eclipse.osgi.framework.console.CommandInterpreter interpreter)
          Fetch command line arguments from source
 String getHelp()
           
protected  void runCommand(String commandName, org.eclipse.osgi.framework.console.CommandInterpreter interpreter)
          Run command method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEquinoxCommandProvider

public AbstractEquinoxCommandProvider(Object service,
                                      String groupName,
                                      Set<String> commandHelps)
Method Detail

getHelp

public String getHelp()
Specified by:
getHelp in interface org.eclipse.osgi.framework.console.CommandProvider

fetchCommandParams

protected String[] fetchCommandParams(org.eclipse.osgi.framework.console.CommandInterpreter interpreter)
Fetch command line arguments from source

Parameters:
interpreter - argument source
Returns:
not null arguments array

runCommand

protected void runCommand(String commandName,
                          org.eclipse.osgi.framework.console.CommandInterpreter interpreter)
Run command method

Parameters:
commandName - command name
interpreter - interpreter


Copyright © 2015 Know-How Lab. All rights reserved.