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

Method Summary
 void addOutputListener(OutputListener l)
          Adds a listener for output sent to stdout or stderr.
 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.
 
Methods inherited from interface org.scijava.plugin.HandlerService
getHandler, getInstances, supports
 
Methods inherited from interface org.scijava.plugin.SingletonService
getInstance
 
Methods inherited from interface org.scijava.plugin.PTService
create, getPlugins, getPluginService, getPluginType
 
Methods inherited from interface org.scijava.service.Service
initialize, registerEventHandlers
 
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
 
Methods inherited from interface org.scijava.Prioritized
getPriority, setPriority
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
 
Methods inherited from interface org.scijava.Disposable
dispose
 
Methods inherited from interface org.scijava.Typed
getType
 

Method Detail

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.