org.scijava.console
Interface ConsoleService
- All Superinterfaces:
- Comparable<Prioritized>, Contextual, Disposable, HandlerService<LinkedList<String>,ConsoleArgument>, HasPluginInfo, Prioritized, PTService<ConsoleArgument>, RichPlugin, SciJavaPlugin, SciJavaService, Service, SingletonService<ConsoleArgument>, Typed<LinkedList<String>>, TypedService<LinkedList<String>,ConsoleArgument>
- All Known Implementing Classes:
- DefaultConsoleService
public interface ConsoleService
- extends HandlerService<LinkedList<String>,ConsoleArgument>, SciJavaService
Interface for service that manages interaction with the console.
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.
- Author:
- Curtis Rueden
processArgs
void processArgs(String... args)
- Handles arguments from an external source such as the command line.
addOutputListener
void addOutputListener(OutputListener l)
- Adds a listener for output sent to
stdout
or stderr
.
removeOutputListener
void removeOutputListener(OutputListener l)
- Removes a listener for output sent to
stdout
or stderr
.
notifyListeners
void notifyListeners(OutputEvent event)
- Notifies listeners of output sent to
stdout
or stderr
.
Copyright © 2009–2015 SciJava. All rights reserved.