public class DefaultConsoleService extends AbstractHandlerService<LinkedList<String>,ConsoleArgument> implements ConsoleService
| Constructor and Description |
|---|
DefaultConsoleService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOutputListener(OutputListener l)
Adds a listener for output sent to
stdout or stderr. |
void |
dispose()
Performs any needed cleanup of the object's services, in preparation for
the object being retired (e.g., to make garbage collection possible).
|
void |
notifyListeners(OutputEvent event)
Notifies listeners of output sent to
stdout or stderr. |
void |
processArgs(String... args)
Handles arguments from an external source such as the command line.
|
void |
removeOutputListener(OutputListener l)
Removes a listener for output sent to
stdout or stderr. |
getInstance, getInstances, objectService, onEvent, onEventpluginServicegetContext, setContext, toStringgetInfo, getPriority, setInfo, setPrioritycontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPluginType, getTypegetHandler, getInstances, supportscreate, filterInstances, getInstance, initialize, objectServicefindgetPlugins, getPluginService, pluginServiceregisterEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersionpublic void processArgs(String... args)
ConsoleServiceprocessArgs in interface ConsoleServicepublic void addOutputListener(OutputListener l)
ConsoleServicestdout or stderr.addOutputListener in interface ConsoleServicepublic void removeOutputListener(OutputListener l)
ConsoleServicestdout or stderr.removeOutputListener in interface ConsoleServicepublic void notifyListeners(OutputEvent event)
ConsoleServicestdout or stderr.notifyListeners in interface ConsoleServicepublic void dispose()
Disposabledispose in interface DisposableCopyright © 2015–2022 SciJava. All rights reserved.