|
||||||||||
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,
java.io.InputStream in,
java.io.PrintStream out,
java.io.PrintStream err,
jline.Terminal terminal)
Allow sub classes of main to change the Console implementation used. |
java.lang.String |
getApplication()
|
java.lang.String |
getDiscoveryResource()
Sub classes can override so that their registered commands do not conflict with the default shell implementation. |
java.lang.String |
getUser()
|
boolean |
isMultiScopeMode()
Returns whether or not we are in multi-scope mode. |
static void |
main(java.lang.String[] args)
|
void |
run(org.apache.felix.service.command.CommandSession parent,
java.lang.String[] args)
Use this method when the shell is being executed as a command of another shell. |
void |
run(java.lang.String[] args)
Use this method when the shell is being executed as a top level shell. |
void |
setApplication(java.lang.String application)
|
void |
setUser(java.lang.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(java.lang.String[] args) throws Exception
Exception
public void run(java.lang.String[] args) throws Exception
args
-
Exception
public void run(org.apache.felix.service.command.CommandSession parent, java.lang.String[] args) throws Exception
parent
- args
-
Exception
protected Console createConsole(org.apache.felix.gogo.runtime.CommandProcessorImpl commandProcessor, java.io.InputStream in, java.io.PrintStream out, java.io.PrintStream err, jline.Terminal terminal) throws Exception
commandProcessor
- in
- out
- err
- terminal
-
Exception
public java.lang.String getDiscoveryResource()
protected void addCommand(Command cmd, org.apache.felix.service.command.Function function, org.apache.felix.gogo.runtime.CommandProcessorImpl commandProcessor)
public java.lang.String getApplication()
public void setApplication(java.lang.String application)
public java.lang.String getUser()
public void setUser(java.lang.String user)
public boolean isMultiScopeMode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |