public class Main extends Object
Constructor and Description |
---|
Main() |
Modifier and Type | Method and Description |
---|---|
protected void |
addCommand(Command cmd,
org.apache.felix.service.command.Function function,
CommandProcessorImpl commandProcessor) |
protected Console |
createConsole(CommandProcessorImpl commandProcessor,
org.apache.felix.service.threadio.ThreadIO threadIO,
InputStream in,
PrintStream out,
PrintStream err,
jline.Terminal terminal)
Allow sub classes of main to change the Console implementation used.
|
String |
getApplication() |
String |
getDiscoveryResource()
Sub classes can override so that their registered commands do not conflict with the default shell
implementation.
|
String |
getUser() |
boolean |
isMultiScopeMode()
Returns whether or not we are in multi-scope mode.
|
static void |
main(String[] args) |
void |
run(org.apache.felix.service.command.CommandSession parent,
org.apache.felix.service.threadio.ThreadIO threadIO,
String[] args)
Use this method when the shell is being executed as a command
of another shell.
|
void |
run(String[] args)
Use this method when the shell is being executed as a top level shell.
|
void |
setApplication(String application) |
void |
setUser(String user) |
public void run(String[] args) throws Exception
args
- Exception
public void run(org.apache.felix.service.command.CommandSession parent, org.apache.felix.service.threadio.ThreadIO threadIO, String[] args) throws Exception
parent
- args
- Exception
protected Console createConsole(CommandProcessorImpl commandProcessor, org.apache.felix.service.threadio.ThreadIO threadIO, InputStream in, PrintStream out, PrintStream err, jline.Terminal terminal) throws Exception
commandProcessor
- in
- out
- err
- terminal
- Exception
public String getDiscoveryResource()
protected void addCommand(Command cmd, org.apache.felix.service.command.Function function, CommandProcessorImpl commandProcessor)
public String getApplication()
public void setApplication(String application)
public String getUser()
public void setUser(String user)
public boolean isMultiScopeMode()
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.