public class JSCommand
extends java.lang.Object
implements com.athaydes.osgiaas.cli.StreamingCommand
| Constructor and Description |
|---|
JSCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.osgi.service.component.ComponentContext context) |
void |
deactivate(org.osgi.service.component.ComponentContext context) |
void |
execute(java.lang.String line,
java.io.PrintStream out,
java.io.PrintStream err) |
java.lang.String |
getName() |
java.lang.String |
getShortDescription() |
java.lang.String |
getUsage() |
java.util.function.Consumer<java.lang.String> |
pipe(java.lang.String line,
java.io.PrintStream out,
java.io.PrintStream err) |
public void activate(org.osgi.service.component.ComponentContext context)
throws java.lang.Exception
java.lang.Exceptionpublic void deactivate(org.osgi.service.component.ComponentContext context)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getName()
getName in interface org.apache.felix.shell.Commandpublic java.lang.String getUsage()
getUsage in interface org.apache.felix.shell.Commandpublic java.lang.String getShortDescription()
getShortDescription in interface org.apache.felix.shell.Commandpublic void execute(java.lang.String line,
java.io.PrintStream out,
java.io.PrintStream err)
execute in interface org.apache.felix.shell.Commandpublic java.util.function.Consumer<java.lang.String> pipe(java.lang.String line,
java.io.PrintStream out,
java.io.PrintStream err)
pipe in interface com.athaydes.osgiaas.cli.StreamingCommand