public abstract class AbstractPluginOptions extends NativeObjectContainer
Modifier | Constructor and Description |
---|---|
protected |
AbstractPluginOptions(String pluginId,
AbstractPluginOptionsFactory<?> 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 |
---|---|
int |
getId()
Returns the unique ID of the options.
|
String |
getPluginId()
Returns the plugin id related to this options.
|
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.
|
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 AbstractPluginOptions(String pluginId, AbstractPluginOptionsFactory<?> factory, boolean deferredRegistration)
pluginId
- plugin IDfactory
- plugin options factorydeferredRegistration
- if true
the options is not registeredpublic final int getId()
public final String getPluginId()
protected List<String> getReferences()
protected void register()