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, supports
create, filterInstances, getInstance, initialize, objectService
find
getPlugins, getPluginService, pluginService
registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
dispose
void 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()
PTService
getPluginType
in interface PTService<ConsoleArgument>
default Class<LinkedList<String>> getType()
Typed
getType
in interface Typed<LinkedList<String>>
Copyright © 2015–2022 SciJava. All rights reserved.