org.scijava.console
Class DefaultConsoleService

java.lang.Object
  extended by org.scijava.AbstractContextual
      extended by org.scijava.plugin.AbstractRichPlugin
          extended by org.scijava.service.AbstractService
              extended by org.scijava.plugin.AbstractPTService<PT>
                  extended by org.scijava.plugin.AbstractSingletonService<PT>
                      extended by org.scijava.plugin.AbstractHandlerService<LinkedList<String>,ConsoleArgument>
                          extended by 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

Constructor Summary
DefaultConsoleService()
           
 
Method Summary
 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.
 
Methods inherited from class org.scijava.plugin.AbstractHandlerService
getHandler, supports
 
Methods inherited from class org.scijava.plugin.AbstractSingletonService
create, filterInstances, getInstance, getInstances, initialize
 
Methods inherited from class org.scijava.plugin.AbstractPTService
getPlugins, getPluginService
 
Methods inherited from class org.scijava.service.AbstractService
getContext, registerEventHandlers, setContext, toString
 
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
compareTo, 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.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
 
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
 

Constructor Detail

DefaultConsoleService

public DefaultConsoleService()
Method Detail

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.