org.knowhowlab.osgi.shell.felix
Class FelixCommand

java.lang.Object
  extended by org.knowhowlab.osgi.shell.felix.FelixCommand
All Implemented Interfaces:
org.apache.felix.shell.Command

public class FelixCommand
extends Object
implements org.apache.felix.shell.Command

Felix Command service implementation

Author:
dmytro.pishchukhin

Constructor Summary
FelixCommand(String name, String usage, Object service)
          Command constructor
 
Method Summary
 void execute(String line, PrintStream out, PrintStream err)
           
 String getName()
           
 String getShortDescription()
           
 String getUsage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FelixCommand

public FelixCommand(String name,
                    String usage,
                    Object service)
             throws NoSuchMethodException
Command constructor

Parameters:
name - command name
usage - command usage help
service - commands provider service instance
Throws:
NoSuchMethodException - if unable to find method in service that links to command name
Method Detail

getName

public String getName()
Specified by:
getName in interface org.apache.felix.shell.Command

getUsage

public String getUsage()
Specified by:
getUsage in interface org.apache.felix.shell.Command

getShortDescription

public String getShortDescription()
Specified by:
getShortDescription in interface org.apache.felix.shell.Command

execute

public void execute(String line,
                    PrintStream out,
                    PrintStream err)
Specified by:
execute in interface org.apache.felix.shell.Command


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