org.scijava.console
Class DefaultConsoleService
java.lang.Object
org.scijava.AbstractContextual
org.scijava.plugin.AbstractRichPlugin
org.scijava.service.AbstractService
org.scijava.plugin.AbstractPTService<PT>
org.scijava.plugin.AbstractSingletonService<PT>
org.scijava.plugin.AbstractHandlerService<LinkedList<String>,ConsoleArgument>
org.scijava.console.DefaultConsoleService
- All Implemented Interfaces:
- Comparable<Prioritized>, ConsoleService, Contextual, Disposable, HandlerService<LinkedList<String>,ConsoleArgument>, HasPluginInfo, PTService<ConsoleArgument>, RichPlugin, SciJavaPlugin, SingletonService<ConsoleArgument>, TypedService<LinkedList<String>,ConsoleArgument>, Prioritized, SciJavaService, Service, Typed<LinkedList<String>>
public class DefaultConsoleService
- extends AbstractHandlerService<LinkedList<String>,ConsoleArgument>
- implements ConsoleService
Default service for managing interaction with the console.
- Author:
- Curtis Rueden
DefaultConsoleService
public DefaultConsoleService()
processArgs
public void processArgs(String... args)
- Description copied from interface:
ConsoleService
- Handles arguments from an external source such as the command line.
- Specified by:
processArgs
in interface ConsoleService
addOutputListener
public void addOutputListener(OutputListener l)
- Description copied from interface:
ConsoleService
- Adds a listener for output sent to
stdout
or stderr
.
- Specified by:
addOutputListener
in interface ConsoleService
removeOutputListener
public void removeOutputListener(OutputListener l)
- Description copied from interface:
ConsoleService
- Removes a listener for output sent to
stdout
or stderr
.
- Specified by:
removeOutputListener
in interface ConsoleService
notifyListeners
public void notifyListeners(OutputEvent event)
- Description copied from interface:
ConsoleService
- Notifies listeners of output sent to
stdout
or stderr
.
- Specified by:
notifyListeners
in interface ConsoleService
getPluginType
public Class<ConsoleArgument> getPluginType()
- Description copied from interface:
PTService
- Gets the type of plugins managed by this service.
- Specified by:
getPluginType
in interface PTService<ConsoleArgument>
getType
public Class<LinkedList<String>> getType()
- Description copied from interface:
Typed
- Gets the type associated with the object.
- Specified by:
getType
in interface Typed<LinkedList<String>>
dispose
public void dispose()
- Description copied from interface:
Disposable
- Performs any needed cleanup of the object's services, in preparation for
the object being retired (e.g., to make garbage collection possible).
- Specified by:
dispose
in interface Disposable
- Overrides:
dispose
in class AbstractService
Copyright © 2009–2015 SciJava. All rights reserved.