public class DefaultOptionsService extends AbstractSingletonService<OptionsPlugin> implements OptionsService
OptionsPlugin
Constructor and Description |
---|
DefaultOptionsService() |
Modifier and Type | Method and Description |
---|---|
List<OptionsPlugin> |
getInstances()
Gets the list of plugin instances.
|
<O extends OptionsPlugin> |
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.
|
getInstance, objectService
pluginService
dispose, getContext, setContext, toString
getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
create, filterInstances, getInstance, initialize, objectService
getPlugins, getPluginService, pluginService
registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
dispose
public <O extends OptionsPlugin> O getOptions(Class<O> optionsClass)
OptionsService
getOptions
in interface OptionsService
public void reset()
OptionsService
reset
in interface OptionsService
OptionsPlugin.reset()
public List<OptionsPlugin> getInstances()
SingletonService
getInstances
in interface SingletonService<OptionsPlugin>
getInstances
in class AbstractSingletonService<OptionsPlugin>
public Class<OptionsPlugin> getPluginType()
PTService
getPluginType
in interface PTService<OptionsPlugin>
Copyright © 2009–2016 SciJava. All rights reserved.