org.scijava.options
Class DefaultOptionsService

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<OptionsPlugin>
                      extended by org.scijava.options.DefaultOptionsService
All Implemented Interfaces:
Comparable<Prioritized>, Contextual, Disposable, OptionsService, HasPluginInfo, PTService<OptionsPlugin>, RichPlugin, SciJavaPlugin, SingletonService<OptionsPlugin>, Prioritized, SciJavaService, Service

public class DefaultOptionsService
extends AbstractSingletonService<OptionsPlugin>
implements OptionsService

Default service for keeping track of the available options and their settings.

Author:
Curtis Rueden, Barry DeZonia
See Also:
OptionsPlugin

Constructor Summary
DefaultOptionsService()
           
 
Method Summary
 List<OptionsPlugin> getInstances()
          Gets the list of plugin instances.
<O extends OptionsPlugin>
O
getOptions(Class<O> optionsClass)
          Gets the options plugin of the given class, or null if none.
 Class<OptionsPlugin> getPluginType()
          Gets the type of plugins managed by this service.
 void reset()
          Clears all option values from persistent storage.
 
Methods inherited from class org.scijava.plugin.AbstractSingletonService
create, filterInstances, getInstance, initialize
 
Methods inherited from class org.scijava.plugin.AbstractPTService
getPlugins, getPluginService
 
Methods inherited from class org.scijava.service.AbstractService
dispose, 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.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
 
Methods inherited from interface org.scijava.Disposable
dispose
 

Constructor Detail

DefaultOptionsService

public DefaultOptionsService()
Method Detail

getOptions

public <O extends OptionsPlugin> O getOptions(Class<O> optionsClass)
Description copied from interface: OptionsService
Gets the options plugin of the given class, or null if none.

Specified by:
getOptions in interface OptionsService

reset

public void reset()
Description copied from interface: OptionsService
Clears all option values from persistent storage.

Specified by:
reset in interface OptionsService
See Also:
OptionsPlugin.reset()

getInstances

public List<OptionsPlugin> getInstances()
Description copied from interface: SingletonService
Gets the list of plugin instances. There will be one singleton instance for each available plugin.

Specified by:
getInstances in interface SingletonService<OptionsPlugin>
Overrides:
getInstances in class AbstractSingletonService<OptionsPlugin>

getPluginType

public Class<OptionsPlugin> getPluginType()
Description copied from interface: PTService
Gets the type of plugins managed by this service.

Specified by:
getPluginType in interface PTService<OptionsPlugin>


Copyright © 2009–2015 SciJava. All rights reserved.