public class DefaultConsoleService extends AbstractHandlerService<LinkedList<String>,ConsoleArgument> implements ConsoleService
| Constructor and Description |
|---|
DefaultConsoleService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOutputListener(OutputListener l)
Adds a listener for output sent to
stdout or stderr. |
void |
dispose()
Performs any needed cleanup of the object's services, in preparation for
the object being retired (e.g., to make garbage collection possible).
|
Class<ConsoleArgument> |
getPluginType()
Gets the type of plugins managed by this service.
|
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, supportscreate, filterInstances, getInstance, getInstances, initializegetPlugins, getPluginServicegetContext, registerEventHandlers, setContext, toStringcompareTo, getInfo, getPriority, setInfo, setPrioritycontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetHandler, getInstances, supportsgetInstancecreate, getPlugins, getPluginServiceinitialize, registerEventHandlerscontext, getContext, setContextgetPriority, setPrioritycompareTogetInfo, setInfopublic void processArgs(String... args)
ConsoleServiceprocessArgs in interface ConsoleServicepublic void addOutputListener(OutputListener l)
ConsoleServicestdout or stderr.addOutputListener in interface ConsoleServicepublic void removeOutputListener(OutputListener l)
ConsoleServicestdout or stderr.removeOutputListener in interface ConsoleServicepublic void notifyListeners(OutputEvent event)
ConsoleServicestdout or stderr.notifyListeners in interface ConsoleServicepublic Class<ConsoleArgument> getPluginType()
PTServicegetPluginType in interface PTService<ConsoleArgument>public Class<LinkedList<String>> getType()
TypedgetType in interface Typed<LinkedList<String>>public void dispose()
Disposabledispose in interface Disposabledispose in class AbstractServiceCopyright © 2009–2016 SciJava. All rights reserved.