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, onEvent
pluginService
getContext, setContext, toString
getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPluginType, getType
getHandler, getInstances, supports
create, filterInstances, getInstance, initialize, objectService
find
getPlugins, getPluginService, pluginService
registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
public void processArgs(String... args)
ConsoleService
processArgs
in interface ConsoleService
public void addOutputListener(OutputListener l)
ConsoleService
stdout
or stderr
.addOutputListener
in interface ConsoleService
public void removeOutputListener(OutputListener l)
ConsoleService
stdout
or stderr
.removeOutputListener
in interface ConsoleService
public void notifyListeners(OutputEvent event)
ConsoleService
stdout
or stderr
.notifyListeners
in interface ConsoleService
public void dispose()
Disposable
dispose
in interface Disposable
Copyright © 2015–2022 SciJava. All rights reserved.