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. |
default Class<ConsoleArgument> |
getPluginType()
Gets the type of plugins managed by this service.
|
default Class<LinkedList<String>> |
getType()
Gets the type associated with the object.
|
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, supportscreate, filterInstances, getInstance, initialize, objectServicefindgetPlugins, getPluginService, pluginServiceregisterEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposevoid processArgs(String... args)
void addOutputListener(OutputListener l)
stdout or stderr.void removeOutputListener(OutputListener l)
stdout or stderr.void notifyListeners(OutputEvent event)
stdout or stderr.default Class<ConsoleArgument> getPluginType()
PTServicegetPluginType in interface PTService<ConsoleArgument>default Class<LinkedList<String>> getType()
TypedgetType in interface Typed<LinkedList<String>>Copyright © 2015–2022 SciJava. All rights reserved.