Constructor and Description |
---|
FrameworkConsole(BundleContext context,
ConsoleSession consoleSession,
boolean isSystemInOut,
ServiceTracker<CommandProvider,CommandProvider> cptracker) |
Modifier and Type | Method and Description |
---|---|
protected void |
docommand(String cmdline)
Process the args on the command line.
|
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.
|
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
|
public FrameworkConsole(BundleContext context, ConsoleSession consoleSession, boolean isSystemInOut, ServiceTracker<CommandProvider,CommandProvider> cptracker)
public PrintWriter getWriter()
public void run()
protected void docommand(String cmdline)
cmdline
- a string containing the command line argumentspublic String getInput()
public CommandProvider[] getServices()
public void shutdown()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.