public interface ConsoleService extends HandlerService<LinkedList<String>,ConsoleArgument>, SciJavaService
In particular, this is the service that defines how command line arguments
are handled. It also provides an extension mechanism for stdout and
stderr logging.
| Modifier and Type | Method and Description |
|---|---|
void |
addOutputListener(OutputListener l)
Adds a listener for output sent to
stdout or stderr. |
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. |
getHandler, getInstances, supportsgetInstancecreate, getPlugins, getPluginService, getPluginTypeinitialize, registerEventHandlerscontext, getContext, setContextgetPriority, setPrioritycompareTogetInfo, setInfodisposevoid processArgs(String... args)
void addOutputListener(OutputListener l)
stdout or stderr.void removeOutputListener(OutputListener l)
stdout or stderr.void notifyListeners(OutputEvent event)
stdout or stderr.Copyright © 2009–2016 SciJava. All rights reserved.