Package org.scijava.console
Interface ConsoleService
-
- All Superinterfaces:
Comparable<Prioritized>,Contextual,Disposable,HandlerService<LinkedList<String>,ConsoleArgument>,HasPluginInfo,Identifiable,Initializable,Locatable,Logged,Prioritized,PTService<ConsoleArgument>,RichPlugin,SciJavaPlugin,SciJavaService,Service,SingletonService<ConsoleArgument>,Typed<LinkedList<String>>,TypedService<LinkedList<String>,ConsoleArgument>,Versioned
- 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
stdoutandstderrlogging.- Author:
- Curtis Rueden
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddOutputListener(OutputListener l)Adds a listener for output sent tostdoutorstderr.default Class<ConsoleArgument>getPluginType()Gets the type of plugins managed by this service.default Class<LinkedList<String>>getType()Gets the type associated with the object.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 interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface org.scijava.Disposable
dispose
-
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
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 tostdoutorstderr.
-
removeOutputListener
void removeOutputListener(OutputListener l)
Removes a listener for output sent tostdoutorstderr.
-
notifyListeners
void notifyListeners(OutputEvent event)
Notifies listeners of output sent tostdoutorstderr.
-
getPluginType
default Class<ConsoleArgument> getPluginType()
Description copied from interface:PTServiceGets the type of plugins managed by this service.- Specified by:
getPluginTypein interfacePTService<ConsoleArgument>
-
getType
default Class<LinkedList<String>> getType()
Description copied from interface:TypedGets the type associated with the object.- Specified by:
getTypein interfaceTyped<LinkedList<String>>
-
-