|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.karaf.shell.console.Main
public class Main
| Constructor Summary | |
|---|---|
Main()
|
|
| Method Summary | |
|---|---|
protected void |
addCommand(Command cmd,
org.apache.felix.service.command.Function function,
org.apache.felix.gogo.runtime.CommandProcessorImpl commandProcessor)
|
protected Console |
createConsole(org.apache.felix.gogo.runtime.CommandProcessorImpl commandProcessor,
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,
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Main()
| Method Detail |
|---|
public static void main(String[] args)
throws Exception
Exception
public void run(String[] args)
throws Exception
args -
Exception
public void run(org.apache.felix.service.command.CommandSession parent,
String[] args)
throws Exception
parent - args -
Exception
protected Console createConsole(org.apache.felix.gogo.runtime.CommandProcessorImpl commandProcessor,
InputStream in,
PrintStream out,
PrintStream err,
jline.Terminal terminal)
throws Exception
commandProcessor - in - out - err - terminal -
Exceptionpublic String getDiscoveryResource()
protected void addCommand(Command cmd,
org.apache.felix.service.command.Function function,
org.apache.felix.gogo.runtime.CommandProcessorImpl commandProcessor)
public String getApplication()
public void setApplication(String application)
public String getUser()
public void setUser(String user)
public boolean isMultiScopeMode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||