public abstract class AbstractPluginOptionsFactory<T extends AbstractPluginOptions> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPluginOptionsFactory(String pluginId)
Creates the object with plugin ID.
|
| Modifier and Type | Method and Description |
|---|---|
abstract T |
create(NativeObject nativeObject,
IsDefaultPlugins defaultValues)
Creates a plugin options by a native object which is containing the options values and its defaults.
|
String |
getPluginId()
Returns the plugin id related to this options.
|
protected <G extends AbstractPluginOptions> |
loadDefaultsPluginOptions(IsDefaultPlugins defaultsPlugins,
AbstractPluginOptionsFactory<G> factory)
Loads the default plugin options from defaults.
If factory, passed as argument, is null, returns null. |
protected AbstractPluginOptionsFactory(String pluginId)
pluginId - plugin idpublic final String getPluginId()
public abstract T create(NativeObject nativeObject, IsDefaultPlugins defaultValues)
nativeObject - native object which is containing the optionsdefaultValues - the defaults values for the plugin optionsprotected final <G extends AbstractPluginOptions> G loadDefaultsPluginOptions(IsDefaultPlugins defaultsPlugins, AbstractPluginOptionsFactory<G> factory)
null, returns null.G - type of native object containerdefaultsPlugins - default values to use to load the plugin optionsfactory - factory to load optionsnull, returns null.