Package 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,Identifiable,Initializable,Locatable,Logged,HandlerService<LinkedList<String>,ConsoleArgument>,HasPluginInfo,PTService<ConsoleArgument>,RichPlugin,SciJavaPlugin,SingletonService<ConsoleArgument>,TypedService<LinkedList<String>,ConsoleArgument>,Prioritized,SciJavaService,Service,Typed<LinkedList<String>>,Versioned
public class DefaultConsoleService extends AbstractHandlerService<LinkedList<String>,ConsoleArgument> implements ConsoleService
Default service for managing interaction with the console.- Author:
- Curtis Rueden
-
-
Constructor Summary
Constructors Constructor Description DefaultConsoleService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOutputListener(OutputListener l)Adds a listener for output sent tostdoutorstderr.voiddispose()Performs any needed cleanup of the object's services, in preparation for the object being retired (e.g., to make garbage collection possible).voidnotifyListeners(OutputEvent event)Notifies listeners of output sent tostdoutorstderr.voidprocessArgs(String... args)Handles arguments from an external source such as the command line.voidremoveOutputListener(OutputListener l)Removes a listener for output sent tostdoutorstderr.-
Methods inherited from class org.scijava.plugin.AbstractSingletonService
getInstance, getInstances, objectService, onEvent, onEvent
-
Methods inherited from class org.scijava.plugin.AbstractPTService
pluginService
-
Methods inherited from class org.scijava.service.AbstractService
getContext, setContext, toString
-
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
getInfo, getPriority, setInfo, setPriority
-
Methods inherited from class org.scijava.AbstractContextual
context
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.scijava.console.ConsoleService
getPluginType, getType
-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface org.scijava.plugin.HandlerService
getHandler, getInstances, supports
-
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
-
Methods inherited from interface org.scijava.Locatable
getLocation
-
Methods inherited from interface org.scijava.Prioritized
compareTo, getPriority, setPriority
-
Methods inherited from interface org.scijava.plugin.PTService
getPlugins, getPluginService, pluginService
-
Methods inherited from interface org.scijava.plugin.RichPlugin
getIdentifier, log
-
Methods inherited from interface org.scijava.service.Service
registerEventHandlers
-
Methods inherited from interface org.scijava.plugin.SingletonService
create, filterInstances, getInstance, initialize, objectService
-
Methods inherited from interface org.scijava.plugin.TypedService
find
-
Methods inherited from interface org.scijava.Versioned
getVersion
-
-
-
-
Method Detail
-
processArgs
public void processArgs(String... args)
Description copied from interface:ConsoleServiceHandles arguments from an external source such as the command line.- Specified by:
processArgsin interfaceConsoleService
-
addOutputListener
public void addOutputListener(OutputListener l)
Description copied from interface:ConsoleServiceAdds a listener for output sent tostdoutorstderr.- Specified by:
addOutputListenerin interfaceConsoleService
-
removeOutputListener
public void removeOutputListener(OutputListener l)
Description copied from interface:ConsoleServiceRemoves a listener for output sent tostdoutorstderr.- Specified by:
removeOutputListenerin interfaceConsoleService
-
notifyListeners
public void notifyListeners(OutputEvent event)
Description copied from interface:ConsoleServiceNotifies listeners of output sent tostdoutorstderr.- Specified by:
notifyListenersin interfaceConsoleService
-
dispose
public void dispose()
Description copied from interface:DisposablePerforms any needed cleanup of the object's services, in preparation for the object being retired (e.g., to make garbage collection possible).- Specified by:
disposein interfaceDisposable
-
-