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, supports
create, filterInstances, getInstance, getInstances, initialize
getPlugins, getPluginService
getContext, registerEventHandlers, setContext, toString
compareTo, getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getHandler, getInstances, supports
getInstance
create, getPlugins, getPluginService
initialize, registerEventHandlers
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
public void processArgs(String... args)
ConsoleService
processArgs
in interface ConsoleService
public void addOutputListener(OutputListener l)
ConsoleService
stdout
or stderr
.addOutputListener
in interface ConsoleService
public void removeOutputListener(OutputListener l)
ConsoleService
stdout
or stderr
.removeOutputListener
in interface ConsoleService
public void notifyListeners(OutputEvent event)
ConsoleService
stdout
or stderr
.notifyListeners
in interface ConsoleService
public Class<ConsoleArgument> getPluginType()
PTService
getPluginType
in interface PTService<ConsoleArgument>
public Class<LinkedList<String>> getType()
Typed
getType
in interface Typed<LinkedList<String>>
public void dispose()
Disposable
dispose
in interface Disposable
dispose
in class AbstractService
Copyright © 2009–2015 SciJava. All rights reserved.