org.scijava.options
Class DefaultOptionsService
java.lang.Object
org.scijava.AbstractContextual
org.scijava.plugin.AbstractRichPlugin
org.scijava.service.AbstractService
org.scijava.plugin.AbstractPTService<PT>
org.scijava.plugin.AbstractSingletonService<OptionsPlugin>
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
DefaultOptionsService
public DefaultOptionsService()
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–2014 SciJava. All rights reserved.