|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.osgi.framework.internal.core.FrameworkConsole
public class FrameworkConsole
This class starts OSGi with a console for development use. FrameworkConsole provides a printStackTrace method to print Exceptions and their nested Exceptions.
| Constructor Summary | |
|---|---|
FrameworkConsole(BundleContext context,
ConsoleSession consoleSession,
boolean isSystemInOut,
ServiceTracker<CommandProvider,CommandProvider> cptracker)
|
|
| Method Summary | |
|---|---|
protected void |
docommand(java.lang.String cmdline)
Process the args on the command line. |
java.lang.String |
getInput()
Reads a string from standard input until user hits the Enter key. |
CommandProvider[] |
getServices()
Return an array of service objects for all services being tracked by this ServiceTracker object. |
java.io.PrintWriter |
getWriter()
Return the current output PrintWriter |
void |
run()
Command Line Interface for OSGi. |
void |
shutdown()
Stops the console so the thread can be GC'ed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FrameworkConsole(BundleContext context,
ConsoleSession consoleSession,
boolean isSystemInOut,
ServiceTracker<CommandProvider,CommandProvider> cptracker)
| Method Detail |
|---|
public java.io.PrintWriter getWriter()
public void run()
run in interface java.lang.Runnableprotected void docommand(java.lang.String cmdline)
cmdline - a string containing the command line argumentspublic java.lang.String getInput()
public CommandProvider[] getServices()
public void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||