public abstract class AbstractPluginCachedOptions extends AbstractPluginOptions
Modifier | Constructor and Description |
---|---|
protected |
AbstractPluginCachedOptions(String pluginId,
AbstractPluginCachedOptionsFactory<?> factory,
boolean deferredRegistration)
Creates new plugin options with its factory, plugin ID and a flag to know if it must register the options to the cache or
if it will be postponed.
The deferred registration is needed to implement options builder in order do not register options not used. |
Modifier and Type | Method and Description |
---|---|
protected Collection<AbstractPluginCachedOptions> |
getInnerOptions()
Returns a collection of inner options of the main one.
Must be override if inner options must be removed from cache. |
protected List<String> |
getReferences()
Returns the list of references of this options.
Called by factory in order to manage correctly the cache and removes this option when it doesn't have any reference. |
protected void |
register()
Registers the options to the factory to manage the cache of options.
|
getId, getPluginId, loadGlobalsPluginOptions, store, store
checkValue, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
protected AbstractPluginCachedOptions(String pluginId, AbstractPluginCachedOptionsFactory<?> factory, boolean deferredRegistration)
pluginId
- plugin IDfactory
- plugin options factorydeferredRegistration
- if true
the options is not registeredprotected List<String> getReferences()
protected void register()
protected Collection<AbstractPluginCachedOptions> getInnerOptions()