org.knowhowlab.osgi.shell.felix
Class FelixCommand
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FelixCommand
public FelixCommand(String name,
String usage,
Object service)
throws NoSuchMethodException
- Command constructor
- Parameters:
name - command nameusage - command usage helpservice - commands provider service instance
- Throws:
NoSuchMethodException - if unable to find method in service that links to command name
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.