Interface IsDefaultPlugins
-
- All Known Implementing Classes:
DefaultChartPlugins
,DefaultPlugins
,Plugins
public interface IsDefaultPlugins
Interface to define plugins object defaults.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends AbstractPluginOptions>
TgetOptions(String pluginId, AbstractPluginOptionsFactory<T> factory)
Returns the plugin options, if exist.boolean
hasOptions(String pluginId)
Checks if there is any options for a specific plugin, by its id.boolean
isEnabled(String pluginId)
Returns if a global plugin is enabled or not.
-
-
-
Method Detail
-
isEnabled
boolean isEnabled(String pluginId)
Returns if a global plugin is enabled or not.- Parameters:
pluginId
- plugin id.- Returns:
false
if a global plugin is not enabled otherwisetrue
.
-
hasOptions
boolean hasOptions(String pluginId)
Checks if there is any options for a specific plugin, by its id.- Parameters:
pluginId
- plugin id.- Returns:
true
if there is an options, otherwisefalse
.
-
getOptions
<T extends AbstractPluginOptions> T getOptions(String pluginId, AbstractPluginOptionsFactory<T> factory)
Returns the plugin options, if exist. It uses a factory instance to create a native object container.
If factory argument is not consistent,null
is returned.- Type Parameters:
T
- type of native object container to return- Parameters:
pluginId
- plugin id.factory
- factory instance to create a native object container.- Returns:
- java script object used to configure the plugin or an empty object if not exist. If factory argument is not consistent,
null
is returned.
-
-