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.
|
create, filterInstances, getInstance, initialize
getPlugins, getPluginService
dispose, getContext, registerEventHandlers, setContext, toString
compareTo, getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getInstance
create, getPlugins, getPluginService
initialize, registerEventHandlers
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
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–2015 SciJava. All rights reserved.